replace mergeclink=1 if BPSTPAGB=="HORSHAM" & STBPCCTYGB=="SUSSEX" & STSUBDIDGB== "SHOREHAM" & STRGCNTYGB== "SUSSEX"
replace mergeclink=1 if BPSTPAGB=="SOUTH HEIGHTON" & STBPCCTYGB=="SUSSEX" & STSUBDIDGB== "SOUTH HORSHAM" & STRGCNTYGB== "SUSSEX"
replace mergeclink=1 if BPSTPAGB=="SOUTHEASE" & STBPCCTYGB=="SUSSEX" & STSUBDIDGB== "SOUTH HORSHAM" & STRGCNTYGB== "SUSSEX"
replace mergeclink=1 if BPSTPAGB=="SOUTHWICK" & STBPCCTYGB=="SUSSEX" & STSUBDIDGB== "SOUTH HORSHAM" & STRGCNTYGB== "SUSSEX"
replace mergeclink=1 if BPSTPAGB=="SOUTH MALLING" & STBPCCTYGB=="SUSSEX" & STSUBDIDGB== "SOUTH HORSHAM" & STRGCNTYGB== "SUSSEX"
replace mergeclink=1 if BPSTPAGB=="NORTH MUNDHAM" & STBPCCTYGB=="SUSSEX" & STSUBDIDGB== "NORTH HORSHAM" & STRGCNTYGB== "SUSSEX"
replace mergeclink=1 if BPSTPAGB=="NORTHIAM" & STBPCCTYGB=="SUSSEX" & STSUBDIDGB== "NORTH HORSHAM" & STRGCNTYGB== "SUSSEX"
replace mergeclink=1 if BPSTPAGB=="NORTH STOKE" & STBPCCTYGB=="SUSSEX" & STSUBDIDGB== "NORTH HORSHAM" & STRGCNTYGB== "SUSSEX"
replace mergeclink=1 if BPSTPAGB=="NORTH CHAPEL" & STBPCCTYGB=="SUSSEX" & STSUBDIDGB== "NORTH HORSHAM" & STRGCNTYGB== "SUSSEX"
replace mergeclink=1 if BPSTPAGB=="NORTH MARDEN" & STBPCCTYGB=="SUSSEX" & STSUBDIDGB== "NORTH HORSHAM" & STRGCNTYGB== "SUSSEX"
replace mergeclink=1 if BPSTPAGB=="WEST HOATHLY" & STBPCCTYGB=="SUSSEX" & STSUBDIDGB== "WEST HORSHAM" & STRGCNTYGB== "SUSSEX"
replace mergeclink=1 if BPSTPAGB=="WEST TARRING" & STBPCCTYGB=="SUSSEX" & STSUBDIDGB== "WEST HORSHAM" & STRGCNTYGB== "SUSSEX"
replace mergeclink=1 if BPSTPAGB=="WEST ITCHENOR" & STBPCCTYGB=="SUSSEX" & STSUBDIDGB== "WEST HORSHAM" & STRGCNTYGB== "SUSSEX"
replace mergeclink=1 if BPSTPAGB=="WEST DEAN" & STBPCCTYGB=="SUSSEX" & STSUBDIDGB== "WEST HORSHAM" & STRGCNTYGB== "SUSSEX"
replace mergeclink=1 if BPSTPAGB=="WESTHAMPNETT" & STBPCCTYGB=="SUSSEX" & STSUBDIDGB== "WEST HORSHAM" & STRGCNTYGB== "SUSSEX"
replace mergeclink=1 if BPSTPAGB=="WEST STOKE" & STBPCCTYGB=="SUSSEX" & STSUBDIDGB== "WEST HORSHAM" & STRGCNTYGB== "SUSSEX"
replace mergeclink=1 if BPSTPAGB=="WEST GRINSTEAD" & STBPCCTYGB=="SUSSEX" & STSUBDIDGB== "WEST HORSHAM" & STRGCNTYGB== "SUSSEX"
replace mergeclink=1 if BPSTPAGB=="WESTMESTON" & STBPCCTYGB=="SUSSEX" & STSUBDIDGB== "WEST HORSHAM" & STRGCNTYGB== "SUSSEX"
replace mergeclink=1 if BPSTPAGB=="ANSTEY" & STBPCCTYGB=="HERTFORDSHIRE" & STSUBDIDGB== "STANSTED" & STRGCNTYGB== "HERTFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="MELCHBOURNE" & STBPCCTYGB=="BEDFORDSHIRE" & STSUBDIDGB== "MELBOURN" & STRGCNTYGB== "HERTFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="MORDIFORD" & STBPCCTYGB=="HEREFORDSHIRE" & STSUBDIDGB== "HERTFORD" & STRGCNTYGB== "HERTFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="HERTINGFORDBURY" & STBPCCTYGB=="HERTFORDSHIRE" & STSUBDIDGB== "HERTFORD" & STRGCNTYGB== "HERTFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="WHEATHAMPSTEAD" & STBPCCTYGB=="HERTFORDSHIRE" & STSUBDIDGB== "BERKHAMPSTEAD" & STRGCNTYGB== "HERTFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="NUTHAMPSTEAD" & STBPCCTYGB=="HERTFORDSHIRE" & STSUBDIDGB== "BERKHAMPSTEAD" & STRGCNTYGB== "HERTFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="SIDBURY" & STBPCCTYGB=="SHROPSHIRE" & STSUBDIDGB== "LYDBURY" & STRGCNTYGB== "SHROPSHIRE"
replace mergeclink=1 if BPSTPAGB=="OLDBURY" & STBPCCTYGB=="SHROPSHIRE" & STSUBDIDGB== "LYDBURY" & STRGCNTYGB== "SHROPSHIRE"
replace mergeclink=1 if BPSTPAGB=="WEST WYCOMBE OR WYCOMBE OLD BOROUGH" & STBPCCTYGB=="BUCKINGHAMSHIRE" & STSUBDIDGB== "HIGH WYCOMBE" & STRGCNTYGB== "BUCKINGHAMSHIRE"
replace mergeclink=1 if BPSTPAGB=="CHIPPING WYCOMBE" & STBPCCTYGB=="BUCKINGHAMSHIRE" & STSUBDIDGB== "HIGH WYCOMBE" & STRGCNTYGB== "BUCKINGHAMSHIRE"
replace mergeclink=1 if BPSTPAGB=="ILKLEY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "FILEY" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="SPROTBOROUGH" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "SCARBOROUGH" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="SCORBOROUGH" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "SCARBOROUGH" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="SCARCROFT" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "SCARBOROUGH" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="HUTTON-BONVILLE" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "HUTTON-BUSHELL" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="MILLINGTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "RILLINGTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="RILSTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "RILLINGTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="HEMLINGTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "RILLINGTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="WAPLINGTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "RILLINGTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="ELLINGSTRING" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "RILLINGTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="FARLINGTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "RILLINGTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="SWILLINGTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "RILLINGTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="GILLING" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "RILLINGTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="ELLINGTONS" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "RILLINGTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="KELLINGTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "RILLINGTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="RIMMINGTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "RILLINGTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="WEST ROUNTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "WESTOW" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="WEST WITTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "WESTOW" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="WEST NEWTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "WESTOW" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="WESTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "WESTOW" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="BOWES" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "WESTOW" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="WALTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "MALTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="DALTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "MALTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="SALTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "MALTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="MELMERBY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "BULMER" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="THIRKLEBY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "THIRSK" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="THIRLBY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "THIRSK" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="THIRTLEBY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "THIRSK" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="CAYTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "KNAYTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="KNAPTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "KNAYTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="BRAYTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "KNAYTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="CLAYTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "KNAYTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="HEELEY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "HELMSLEY" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="TOLLERTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "ALLERSTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="ELLERTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "ALLERSTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="ALLERTON-MAULEVERER WITH HOPPERTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "ALLERSTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="LEBBERSTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "ALLERSTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="ALLERTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "ALLERSTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="ALLERTON-BYWATER" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "ALLERSTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="ACKTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "LOCKTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="FLOCKTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "LOCKTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="BUCKTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "LOCKTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="RIGTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "EGTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="WIGTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "EGTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="WHITWELL" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "WHITBY" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="WHITWOOD" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "WHITBY" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="WHITGIFT" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "WHITBY" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="CONISBROUGH" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "GUISBROUGH" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="GREASBROUGH" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "GUISBROUGH" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="THORALBY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "THORNABY" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="HUNTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "HUTTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="NORTH ELMSALL" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "NORTHALLERTON" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="HALSHAM" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "MASHAM" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="MALHAM" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "MASHAM" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="MIDDLETON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "MIDDLEHAM" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="MIDDLETHORPE" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "MIDDLEHAM" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="BURN" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "LEYBURN" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="CATWICK" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "CATTERICK" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="CATTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "CATTERICK" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="CATTAL" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "CATTERICK" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="HOWSHAM" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "NEWSHAM" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="NEWSHOLME" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "NEWSHAM" & STRGCNTYGB== "YORKSHIRE NORTH"
replace mergeclink=1 if BPSTPAGB=="BURGH" & STBPCCTYGB=="SUFFOLK" & STSUBDIDGB== "BURES" & STRGCNTYGB== "SUFFOLK"
replace mergeclink=1 if BPSTPAGB=="SUDBOURNE" & STBPCCTYGB=="SUFFOLK" & STSUBDIDGB== "SUDBURY" & STRGCNTYGB== "SUFFOLK"
replace mergeclink=1 if BPSTPAGB=="CULFORD" & STBPCCTYGB=="SUFFOLK" & STSUBDIDGB== "MELFORD" & STRGCNTYGB== "SUFFOLK"
replace mergeclink=1 if BPSTPAGB=="BARNHAM" & STBPCCTYGB=="SUFFOLK" & STSUBDIDGB== "FORNHAM" & STRGCNTYGB== "SUFFOLK"
replace mergeclink=1 if BPSTPAGB=="FARNHAM" & STBPCCTYGB=="SUFFOLK" & STSUBDIDGB== "FORNHAM" & STRGCNTYGB== "SUFFOLK"
replace mergeclink=1 if BPSTPAGB=="WICKHAM MARKET" & STBPCCTYGB=="SUFFOLK" & STSUBDIDGB== "NEEDHAM MARKET" & STRGCNTYGB== "SUFFOLK"
replace mergeclink=1 if BPSTPAGB=="NEWMARKET ST MARY" & STBPCCTYGB=="SUFFOLK" & STSUBDIDGB== "NEEDHAM MARKET" & STRGCNTYGB== "SUFFOLK"
replace mergeclink=1 if BPSTPAGB=="IPSWICH ST MATTHEW" & STBPCCTYGB=="SUFFOLK" & STSUBDIDGB== "ST MATTHEW" & STRGCNTYGB== "SUFFOLK"
replace mergeclink=1 if BPSTPAGB=="IPSWICH ST CLEMENT" & STBPCCTYGB=="SUFFOLK" & STSUBDIDGB== "ST CLEMENT" & STRGCNTYGB== "SUFFOLK"
replace mergeclink=1 if BPSTPAGB=="ST MARY BUNGAY" & STBPCCTYGB=="SUFFOLK" & STSUBDIDGB== "ST MARGARET" & STRGCNTYGB== "SUFFOLK"
replace mergeclink=1 if BPSTPAGB=="ST MARGARET ILKETSHALL" & STBPCCTYGB=="SUFFOLK" & STSUBDIDGB== "ST MARGARET" & STRGCNTYGB== "SUFFOLK"
replace mergeclink=1 if BPSTPAGB=="IPSWICH ST MARGARET" & STBPCCTYGB=="SUFFOLK" & STSUBDIDGB== "ST MARGARET" & STRGCNTYGB== "SUFFOLK"
replace mergeclink=1 if BPSTPAGB=="ST MARGARET SOUTH ELMHAM" & STBPCCTYGB=="SUFFOLK" & STSUBDIDGB== "ST MARGARET" & STRGCNTYGB== "SUFFOLK"
replace mergeclink=1 if BPSTPAGB=="CARLTON" & STBPCCTYGB=="SUFFOLK" & STSUBDIDGB== "CARLFORD" & STRGCNTYGB== "SUFFOLK"
replace mergeclink=1 if BPSTPAGB=="MARLESFORD" & STBPCCTYGB=="SUFFOLK" & STSUBDIDGB== "CARLFORD" & STRGCNTYGB== "SUFFOLK"
replace mergeclink=1 if BPSTPAGB=="CASTLE GRESLEY" & STBPCCTYGB=="DERBYSHIRE" & STSUBDIDGB== "CASTLE DONINGTON" & STRGCNTYGB== "DERBYSHIRE"
replace mergeclink=1 if BPSTPAGB=="CASTLETON" & STBPCCTYGB=="DERBYSHIRE" & STSUBDIDGB== "CASTLE DONINGTON" & STRGCNTYGB== "DERBYSHIRE"
replace mergeclink=1 if BPSTPAGB=="ALKMONTON" & STBPCCTYGB=="DERBYSHIRE" & STSUBDIDGB== "CALTON" & STRGCNTYGB== "DERBYSHIRE"
replace mergeclink=1 if BPSTPAGB=="WALTON" & STBPCCTYGB=="DERBYSHIRE" & STSUBDIDGB== "CALTON" & STRGCNTYGB== "DERBYSHIRE"
replace mergeclink=1 if BPSTPAGB=="CATTON" & STBPCCTYGB=="DERBYSHIRE" & STSUBDIDGB== "CALTON" & STRGCNTYGB== "DERBYSHIRE"
replace mergeclink=1 if BPSTPAGB=="ELTON" & STBPCCTYGB=="DERBYSHIRE" & STSUBDIDGB== "CALTON" & STRGCNTYGB== "DERBYSHIRE"
replace mergeclink=1 if BPSTPAGB=="DARTINGTON" & STBPCCTYGB=="DEVONSHIRE" & STSUBDIDGB== "HARTINGTON" & STRGCNTYGB== "DERBYSHIRE"
replace mergeclink=1 if BPSTPAGB=="TISSINGTON" & STBPCCTYGB=="DERBYSHIRE" & STSUBDIDGB== "HARTINGTON" & STRGCNTYGB== "DERBYSHIRE"
replace mergeclink=1 if BPSTPAGB=="CARSINGTON" & STBPCCTYGB=="DERBYSHIRE" & STSUBDIDGB== "HARTINGTON" & STRGCNTYGB== "DERBYSHIRE"
replace mergeclink=1 if BPSTPAGB=="WHITTINGTON" & STBPCCTYGB=="DERBYSHIRE" & STSUBDIDGB== "HARTINGTON" & STRGCNTYGB== "DERBYSHIRE"
replace mergeclink=1 if BPSTPAGB=="HARTINGTON TOWN QUARTER" & STBPCCTYGB=="DERBYSHIRE" & STSUBDIDGB== "HARTINGTON" & STRGCNTYGB== "DERBYSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGWM" & STBPCCTYGB=="DENBIGHSHIRE" & STSUBDIDGB== "LLANRHAIADR" & STRGCNTYGB== "DENBIGHSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANBEDR" & STBPCCTYGB=="DENBIGHSHIRE" & STSUBDIDGB== "LLANRHAIADR" & STRGCNTYGB== "DENBIGHSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANDDULAS" & STBPCCTYGB=="DENBIGHSHIRE" & STSUBDIDGB== "LLANRHAIADR" & STRGCNTYGB== "DENBIGHSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGWYFAN" & STBPCCTYGB=="DENBIGHSHIRE" & STSUBDIDGB== "LLANRHAIADR" & STRGCNTYGB== "DENBIGHSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGOLLEN-TRIAIAN" & STBPCCTYGB=="DENBIGHSHIRE" & STSUBDIDGB== "LLANRHAIADR" & STRGCNTYGB== "DENBIGHSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANDEGLA" & STBPCCTYGB=="DENBIGHSHIRE" & STSUBDIDGB== "LLANRHAIADR" & STRGCNTYGB== "DENBIGHSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANFAIRTALHAIARN" & STBPCCTYGB=="DENBIGHSHIRE" & STSUBDIDGB== "LLANRHAIADR" & STRGCNTYGB== "DENBIGHSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANDRILLO-YN-RH\UffffffffS" & STBPCCTYGB=="DENBIGHSHIRE" & STSUBDIDGB== "LLANRHAIADR" & STRGCNTYGB== "DENBIGHSHIRE"
replace mergeclink=1 if BPSTPAGB=="HADDINGTON" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "ST MARY PADDINGTON" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="ADDINGTON" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "ST MARY PADDINGTON" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="WADDINGTON" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "ST MARY PADDINGTON" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="CADDINGTON" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "ST MARY PADDINGTON" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="TODDINGTON" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "ST MARY PADDINGTON" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="HADDINGTON" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "ST JOHN PADDINGTON" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="ADDINGTON" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "ST JOHN PADDINGTON" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="CADDINGTON" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "ST JOHN PADDINGTON" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="WADDINGTON" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "ST JOHN PADDINGTON" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="TODDINGTON" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "ST JOHN PADDINGTON" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="BRIMPTON" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "BROMPTON" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="BROUGHTON" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "BROMPTON" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="BRAMPTON" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "BROMPTON" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="HAMPTON" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "BROMPTON" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="RAMPTON" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "BROMPTON" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="CAMPTON" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "BROMPTON" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="ST PETER CORNHILL" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "ST PETER HAMMERSMITH" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="ST DUNSTAN IN THE WEST" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "ST JOHN WESTMINSTER" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="STANSTEAD ST MARGARET" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "ST MARGARET WESTMINSTER" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="LEICESTER ST MARGARET" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "ST MARGARET WESTMINSTER" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="ST MARGARET PATTENS" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "ST MARGARET WESTMINSTER" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="ST MARTIN LUDGATE" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "ST MARY" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="ST MARYLEBONE" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "ST MARY" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="COTTENHAM" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "TOTTENHAM COURT" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="SOMERSHAM" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "SOMERS TOWN" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="LIDLINGTON" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "ISLINGTON WEST" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="LITLINGTON" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "ISLINGTON WEST" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="LIDLINGTON" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "ISLINGTON EAST" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="LITLINGTON" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "ISLINGTON EAST" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="STAPLEFORD" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "STAMFORD HILL" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="WEST DRAYTON" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "WEST HACKNEY" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="WEST WICKHAM" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "WEST HACKNEY" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="WESTLEY-WATERLESS" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "WEST HACKNEY" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="WESTON" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "WEST HACKNEY" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="SOUTHWELL" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "SOUTH HACKNEY" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="SOUTH MORETON" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "SOUTH HACKNEY" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="SOUTHWICK" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "SOUTH HACKNEY" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="SOUTH END" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "SOUTH HACKNEY" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="SOUTH STONEHAM" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "SOUTH HACKNEY" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="SOUTHILL" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "SOUTH HACKNEY" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="ST SAVIOUR SOUTHWARK" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "ST GILES SOUTH" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="ST BARTHOLOMEW THE GREAT" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "ST GEORGE THE MARTYR" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="ST GEORGE IN THE EAST" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "ST GEORGE THE MARTYR" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="ST ALBANS ST PETER" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "ST ANDREW EASTERN" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="ST VEDAST FOSTER LANE" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "ST ANDREW EASTERN" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="ST JAMES GARLICKHITHE" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "ST JAMES CLERKENWELL" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="ELMSWELL" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "AMWELL" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="BOW STREET" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "OLD STREET" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="CITY OF LONDON" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "CITY ROAD" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="KINGSBURY" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "FINSBURY" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="ST BENET FINK" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "ST BOTOLPH" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="BROAD HINTON" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "BROAD STREET" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="ST LUKE" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "ST LEONARD" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="GREAT GREENFORD" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "GREEN" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="WOODGREEN" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "GREEN" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="WHITCHURCH" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "WHITECHAPEL CHURCH" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="MANSFIELD" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "GOODMANS FIELDS" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="ST PANCRAS" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "ST PAUL" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="BRENDON" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "BRENTFORD" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="HARRINGTON" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "HARROW" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="BARNES" & STBPCCTYGB=="MIDDLESEX" & STSUBDIDGB== "BARNET" & STRGCNTYGB== "MIDDLESEX"
replace mergeclink=1 if BPSTPAGB=="GUERNSEY" & STBPCCTYGB=="GUERNSEY" & STSUBDIDGB== "GUERNSEY - VALE" & STRGCNTYGB== "GUERNSEY"
replace mergeclink=1 if BPSTPAGB=="DENBY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "DENT" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="LONG RISTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "LONG PRESTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="LONG MARSTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "LONG PRESTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="KIRKBY FLEETHAM" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "KIRKBY MALHAM" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="KIRBY HALL" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "KIRKBY MALHAM" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="KIRKBY OVERBLOW" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "KIRKBY MALHAM" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="KIRKHAM" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "KIRKBY MALHAM" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="FELLISCLIFFE" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "ARNCLIFFE" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="CLIFFE" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "ARNCLIFFE" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="WYCLIFFE" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "ARNCLIFFE" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="LETWELL" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "KETTLEWELL" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="KILDALE" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "KILDWICK" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="KILNWICK" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "KILDWICK" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="SHIPTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "SKIPTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="WINTRINGHAM" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "ADDINGHAM" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="EASINGTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "GRASSINGTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="ROSSINGTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "GRASSINGTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="LINTHWAITE" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "THORNTHWAITE" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="MAPPLETON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "POPPLETON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="KEARBY WITH NETHERBY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "WETHERBY" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="AMOTHERBY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "WETHERBY" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="BOLTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "BOSTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="ESTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "BOSTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="OWSTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "FEWSTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="LELLEY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "OTLEY" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="HACKFORTH" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "HAWORTH" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="HAWKSWORTH" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "HAWORTH" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="UPPER WHITLEY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "UPPER MILL" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="CONONLEY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "HONLEY" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="KIRKBY MISPERTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "KIRKBURTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="KIRK HAMMERTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "KIRKBURTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="KIRK DEIGHTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "KIRKBURTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="KIRKBURN" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "KIRKBURTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="KIRK FENTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "KIRKBURTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="BURTON SALMON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "ALMONDBURY" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="KIRK LEATHAM" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "KIRKHEATON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="KIRK FENTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "KIRKHEATON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="HEATON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "KIRKHEATON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="KIRK DEIGHTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "KIRKHEATON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="KIRK SMEATON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "KIRKHEATON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="KIRK LEAVINGTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "KIRKHEATON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="LONGWOOD" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "LOCKWOOD" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="BRIGHAM" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "BRIGHOUSE" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="DRINGHOUSES" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "BRIGHOUSE" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="SOUTHBURN" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "SOUTHOWRAM" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="SOUTH HOLME" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "SOUTHOWRAM" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="SWANLAND" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "ELLAND" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="NORTH HOLME" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "NORTHOWRAM" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="NORTH THORESBY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "NORTHOWRAM" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="NORTH CAVE AND DREWTON WITH EVERTHORPE" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "NORTH BIERLEY" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="NORTH STAINLEY WITH SLENINGFORD" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "NORTH BIERLEY" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="NORTH FERRIBY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "NORTH BIERLEY" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="IRTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "HORTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="MORTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "HORTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="SCORTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "HORTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="THORNABY WITH SOUTH STOCKTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "THORNTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="SILSDEN" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "WILSDEN" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="SHEPLEY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "SHIPLEY" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="NORTH CLIFF" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "NORTH LEEDS" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="WEST HADDLESEY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "WEST LEEDS" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="WEST HESLERTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "WEST LEEDS" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="WEST ARDSLEY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "WEST LEEDS" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="KIRK SANDALL" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "KIRKSTALL" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="KIRK ELLA" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "KIRKSTALL" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="CHAPEL HADDLESEY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "CHAPELTOWN" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="CHAPEL ALLERTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "CHAPELTOWN" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="LEATHLEY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "BATLEY" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="LIVERTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "LIVERSEDGE" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="FARNHILL" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "THORNHILL" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="THORNVILLE" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "THORNHILL" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="BREARTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "BRETTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="ETTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "BRETTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="TREETON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "BRETTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="BROTTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "BRETTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="STANGHOW" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "STANLEY" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="STAVELEY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "STANLEY" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="STANDON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "STANLEY" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="KELFIELD" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "WAKEFIELD" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="BURYTHORPE" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "HORBURY" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="ALLERTHORPE" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "ALVERTHORPE" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="CARTHORPE" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "ALVERTHORPE" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="HELPERTHORPE" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "ALVERTHORPE" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="INGERTHORPE" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "ALVERTHORPE" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="WEAVERTHORPE" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "ALVERTHORPE" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="WHEATLEY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "WHITLEY" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="CASTLE LEAVINGTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "CASTLEFORD" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="CASTLE BOLTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "CASTLEFORD" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="WARMSWORTH" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "HEMSWORTH" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="HUNSWORTH" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "HEMSWORTH" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="HEWORTH" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "HEMSWORTH" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="BARTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "DARTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="HARTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "DARTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="MARTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "DARTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="DARRINGTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "DARTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="IRTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "DARTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="BARNBY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "BARNSLEY" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="CAWTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "CAWTHORNE" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="CONISTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "PENISTONE" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="ECCLESHILL" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "ECCLESFIELD" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="ALDFIELD" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "BRADFIELD" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="NETHER HOYLAND" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "NETHER HALLAM" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="NETHERTHONG" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "NETHER HALLAM" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="NETHER SILTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "NETHER HALLAM" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="NORMANTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "NORTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="SCORTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "NORTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="NORTH DALTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "NORTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="MORTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "NORTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="IRTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "NORTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="NORTH COWTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "NORTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="WEST ELLA" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "WEST SHEFFIELD" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="WEST TANFIELD" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "WEST SHEFFIELD" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="NORTH NEWBALD" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "NORTH SHEFFIELD" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="NORTH CLIFF" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "NORTH SHEFFIELD" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="CATCLIFFE" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "ATTERCLIFFE" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="BRODSWORTH" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "HANDSWORTH" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="WADSWORTH" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "HANDSWORTH" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="BADSWORTH" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "HANDSWORTH" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="REIGHTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "BEIGHTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="DEIGHTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "BEIGHTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="CUMBERWORTH" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "KIMBERWORTH" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="BARUGH" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "BARMBROUGH" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="HEPWORTH" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "EPWORTH" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="THOLTHORPE" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "THORNE" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="THORP ARCH" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "THORNE" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="CRATHORNE" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "THORNE" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="LANGTHORNE" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "THORNE" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="OWTHORNE" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "THORNE" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="THORNHOLME" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "THORNE" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="THORNBROUGH" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "THORNE" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="THORPE" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "THORNE" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="THORNGUMBALD" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "THORNE" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="THORNER" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "THORNE" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="ROWLEY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "CROWLE" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="SWINE" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "SWINEFLEET" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="CARLETON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "CARLTON" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="BIELBY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "SELBY" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="ASSELBY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "SELBY" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="WEST TADCASTER" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "TADCASTER" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="APPLETREEWICK" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "APPLETON ROEBUCK" & STRGCNTYGB== "YORKSHIRE WEST"
replace mergeclink=1 if BPSTPAGB=="UPLYME" & STBPCCTYGB=="DEVONSHIRE" & STSUBDIDGB== "LYME" & STRGCNTYGB== "DEVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="CHARLETON" & STBPCCTYGB=="DEVONSHIRE" & STSUBDIDGB== "CHARDSTOCK" & STRGCNTYGB== "DEVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="AXMOUTH" & STBPCCTYGB=="DEVONSHIRE" & STSUBDIDGB== "EXMOUTH" & STRGCNTYGB== "DEVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="EXMOOR" & STBPCCTYGB=="DEVONSHIRE" & STSUBDIDGB== "EXMOUTH" & STRGCNTYGB== "DEVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="SIDMOUTH" & STBPCCTYGB=="DEVONSHIRE" & STSUBDIDGB== "EXMOUTH" & STRGCNTYGB== "DEVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="TEIGNGRACE" & STBPCCTYGB=="DEVONSHIRE" & STSUBDIDGB== "TEIGNMOUTH" & STRGCNTYGB== "DEVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="NEWTON ST PETROCK" & STBPCCTYGB=="DEVONSHIRE" & STSUBDIDGB== "NEWTON ABBOT" & STRGCNTYGB== "DEVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="NEWTON ST CYRES" & STBPCCTYGB=="DEVONSHIRE" & STSUBDIDGB== "NEWTON ABBOT" & STRGCNTYGB== "DEVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="NEWTON-FERRERS" & STBPCCTYGB=="DEVONSHIRE" & STSUBDIDGB== "NEWTON ABBOT" & STRGCNTYGB== "DEVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="NEWTON-TRACEY" & STBPCCTYGB=="DEVONSHIRE" & STSUBDIDGB== "NEWTON ABBOT" & STRGCNTYGB== "DEVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="PLYMSTOCK" & STBPCCTYGB=="DEVONSHIRE" & STSUBDIDGB== "PLYMPTON" & STRGCNTYGB== "DEVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="PLYMOUTH" & STBPCCTYGB=="DEVONSHIRE" & STSUBDIDGB== "PLYMPTON" & STRGCNTYGB== "DEVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="PLYMTREE" & STBPCCTYGB=="DEVONSHIRE" & STSUBDIDGB== "PLYMPTON" & STRGCNTYGB== "DEVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="LYMPSTON" & STBPCCTYGB=="DEVONSHIRE" & STSUBDIDGB== "PLYMPTON" & STRGCNTYGB== "DEVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="STOKEINTEIGNHEAD" & STBPCCTYGB=="DEVONSHIRE" & STSUBDIDGB== "STOKE" & STRGCNTYGB== "DEVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="STOKEFLEMING" & STBPCCTYGB=="DEVONSHIRE" & STSUBDIDGB== "STOKE" & STRGCNTYGB== "DEVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="REVELSTOKE" & STBPCCTYGB=="DEVONSHIRE" & STSUBDIDGB== "STOKE" & STRGCNTYGB== "DEVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="CHERITON BISHOP" & STBPCCTYGB=="DEVONSHIRE" & STSUBDIDGB== "CHERITON FITZPAINE" & STRGCNTYGB== "DEVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="BISHOPSTEIGNTON" & STBPCCTYGB=="DEVONSHIRE" & STSUBDIDGB== "BISHOPS TAWTON" & STRGCNTYGB== "DEVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="BISHOP'S NYMPTON" & STBPCCTYGB=="DEVONSHIRE" & STSUBDIDGB== "BISHOPS TAWTON" & STRGCNTYGB== "DEVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="WILTON" & STBPCCTYGB=="SOMERSET" & STSUBDIDGB== "WILLITON" & STRGCNTYGB== "SOMERSET"
replace mergeclink=1 if BPSTPAGB=="LANGRIDGE" & STBPCCTYGB=="SOMERSET" & STSUBDIDGB== "LANGPORT" & STRGCNTYGB== "SOMERSET"
replace mergeclink=1 if BPSTPAGB=="WELLOW" & STBPCCTYGB=="SOMERSET" & STSUBDIDGB== "WELLS" & STRGCNTYGB== "SOMERSET"
replace mergeclink=1 if BPSTPAGB=="MELLS" & STBPCCTYGB=="SOMERSET" & STSUBDIDGB== "WELLS" & STRGCNTYGB== "SOMERSET"
replace mergeclink=1 if BPSTPAGB=="SWELL" & STBPCCTYGB=="SOMERSET" & STSUBDIDGB== "WELLS" & STRGCNTYGB== "SOMERSET"
replace mergeclink=1 if BPSTPAGB=="BATHFORD" & STBPCCTYGB=="SOMERSET" & STSUBDIDGB== "BATHWICK" & STRGCNTYGB== "SOMERSET"
replace mergeclink=1 if BPSTPAGB=="BATH" & STBPCCTYGB=="SOMERSET" & STSUBDIDGB== "BATHWICK" & STRGCNTYGB== "SOMERSET"
replace mergeclink=1 if BPSTPAGB=="BARWICK" & STBPCCTYGB=="SOMERSET" & STSUBDIDGB== "BATHWICK" & STRGCNTYGB== "SOMERSET"
replace mergeclink=1 if BPSTPAGB=="ASHWICK" & STBPCCTYGB=="SOMERSET" & STSUBDIDGB== "BATHWICK" & STRGCNTYGB== "SOMERSET"
replace mergeclink=1 if BPSTPAGB=="BATHEALTON" & STBPCCTYGB=="SOMERSET" & STSUBDIDGB== "BATHWICK" & STRGCNTYGB== "SOMERSET"
replace mergeclink=1 if BPSTPAGB=="BATHAMPTON" & STBPCCTYGB=="SOMERSET" & STSUBDIDGB== "BATHWICK" & STRGCNTYGB== "SOMERSET"
replace mergeclink=1 if BPSTPAGB=="BATH ST MICHAEL" & STBPCCTYGB=="SOMERSET" & STSUBDIDGB== "BATHWICK" & STRGCNTYGB== "SOMERSET"
replace mergeclink=1 if BPSTPAGB=="ODCOMBE" & STBPCCTYGB=="SOMERSET" & STSUBDIDGB== "LYNCOMBE" & STRGCNTYGB== "SOMERSET"
replace mergeclink=1 if BPSTPAGB=="TIMBERSCOMBE" & STBPCCTYGB=="SOMERSET" & STSUBDIDGB== "LYNCOMBE" & STRGCNTYGB== "SOMERSET"
replace mergeclink=1 if BPSTPAGB=="LITTON" & STBPCCTYGB=="SOMERSET" & STSUBDIDGB== "BITTON" & STRGCNTYGB== "SOMERSET"
replace mergeclink=1 if BPSTPAGB=="TOLLAND" & STBPCCTYGB=="SOMERSET" & STSUBDIDGB== "OLDLAND" & STRGCNTYGB== "SOMERSET"
replace mergeclink=1 if BPSTPAGB=="EAST RUSTON" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "EAST FLEGG" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="EAST LEXHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "EAST FLEGG" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="EAST BARSHAM AKA EAST BASHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "EAST FLEGG" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="EAST CARLTON" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "EAST FLEGG" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="EAST BILNEY" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "EAST FLEGG" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="EAST RUDHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "EAST FLEGG" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="EAST HARLING" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "EAST FLEGG" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="EASTON" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "EAST FLEGG" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="EAST TUDDENHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "EAST FLEGG" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="EAST BRADENHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "EAST FLEGG" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="EAST BECKHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "EAST FLEGG" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="WEST NEWTON" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WEST FLEGG" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="WEST BILNEY" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WEST FLEGG" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="WEST LEXHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WEST FLEGG" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="WEST TOFTS" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WEST FLEGG" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="WEST ACRE" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WEST FLEGG" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="WEST RUDHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WEST FLEGG" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="WEST BRADENHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WEST FLEGG" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="WEST HARLING" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WEST FLEGG" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="WESTWICK" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WEST FLEGG" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="WEST BECKHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WEST FLEGG" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="LYNFORD" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "EYNSFORD" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="HORSFORD" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "EYNSFORD" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="EAST HARLING" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "EAST WYMER" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="EAST WALTON" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "EAST WYMER" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="EAST RUSTON" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "EAST WYMER" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="EAST TUDDENHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "EAST WYMER" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="EAST BARSHAM AKA EAST BASHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "EAST WYMER" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="EAST RUDHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "EAST WYMER" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="EAST BRADENHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "EAST WYMER" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="EAST SOMERTON" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "EAST WYMER" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="EAST BECKHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "EAST WYMER" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="EAST WINCH" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "EAST WYMER" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="EAST CARLTON" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "EAST WYMER" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="EAST WRETHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "EAST WYMER" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="EAST BILNEY" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "EAST WYMER" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="EASTON" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "EAST WYMER" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="WEST RUDHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WEST WYMER" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="WEST SOMERTON" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WEST WYMER" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="WEST BARSHAM AKA WEST BASHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WEST WYMER" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="WEST ACRE" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WEST WYMER" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="WEST TOFTS" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WEST WYMER" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="WEST BECKHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WEST WYMER" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="WEST WRETHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WEST WYMER" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="WEST HARLING" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WEST WYMER" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="WEST DEREHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WEST WYMER" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="WEST NEWTON" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WEST WYMER" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="WEST BRADENHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WEST WYMER" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="WEST WINCH" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WEST WYMER" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="WEST WALTON" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WEST WYMER" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="WESTWICK" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WEST WYMER" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="WEST BILNEY" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WEST WYMER" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="WEST LYN ST PETER" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WEST WYMER" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="SUSTEAD" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "HENSTEAD" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="IRSTEAD" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "HENSTEAD" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="HEMPSTEAD" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "HENSTEAD" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="TUNSTEAD" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "HENSTEAD" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="SOUTH PICKENHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "SOUTH WALSHAM" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="SOUTHERY" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "SOUTH WALSHAM" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="SOUTH CREAKE" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "SOUTH WALSHAM" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="SOUTHWOOD" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "SOUTH WALSHAM" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="SOUTH TUDDENHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "SOUTH WALSHAM" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="SOUTH RAINHAM AKA RAINHAM ST MARTIN" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "SOUTH WALSHAM" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="SOUTH LOPHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "SOUTH WALSHAM" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="SOUTH BURGH" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "SOUTH WALSHAM" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="SOUTH RUNCTON" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "SOUTH WALSHAM" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="SOUTHACRE" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "SOUTH WALSHAM" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="SOUTH WOOTTON" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "SOUTH WALSHAM" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="SOUTH REPPS" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "SOUTH WALSHAM" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="THARSTON" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "HARLESTON" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="STARSTON" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "HARLESTON" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="STRADSETT" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "STRATTON" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="STURSTON" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "STRATTON" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="STOCKTON" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "STRATTON" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="CATTON" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "STRATTON" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="LESSINGHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WALSINGHAM" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="BRESSINGHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WALSINGHAM" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="HINDRINGHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WALSINGHAM" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="WRAMPLINGHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WALSINGHAM" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="BRININGHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WALSINGHAM" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="HASSINGHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WALSINGHAM" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="INGHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WALSINGHAM" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="HINGHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WALSINGHAM" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="BESSINGHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WALSINGHAM" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="WALSOKEN" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WALSINGHAM" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="GRESSINGHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WALSINGHAM" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="SHINGHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WALSINGHAM" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="HARDINGHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WALSINGHAM" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="DERSINGHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WALSINGHAM" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="WELLINGHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WELLS" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="UPWELL" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "WELLS" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="BUCKENHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "BURNHAM" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="THORNHAM" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "BURNHAM" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="SOUTH LYNN ALL SAINTS" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "KINGS LYNN SOUTH" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="HETHEL" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "THETFORD" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="THURSFORD" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "THETFORD" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="HETHERSETT" & STBPCCTYGB=="NORFOLK" & STSUBDIDGB== "THETFORD" & STRGCNTYGB== "NORFOLK"
replace mergeclink=1 if BPSTPAGB=="NORTH TAMERTON" & STBPCCTYGB=="CORNWALL" & STSUBDIDGB== "NORTH PETHERWIN" & STRGCNTYGB== "CORNWALL"
replace mergeclink=1 if BPSTPAGB=="SOUTH PETHERWIN" & STBPCCTYGB=="CORNWALL" & STSUBDIDGB== "NORTH PETHERWIN" & STRGCNTYGB== "CORNWALL"
replace mergeclink=1 if BPSTPAGB=="ST STITHIANS" & STBPCCTYGB=="CORNWALL" & STSUBDIDGB== "ST STEPHEN" & STRGCNTYGB== "CORNWALL"
replace mergeclink=1 if BPSTPAGB=="LAUNCELLS" & STBPCCTYGB=="CORNWALL" & STSUBDIDGB== "LAUNCESTON" & STRGCNTYGB== "CORNWALL"
replace mergeclink=1 if BPSTPAGB=="ST CLEER" & STBPCCTYGB=="CORNWALL" & STSUBDIDGB== "ST COLUMB" & STRGCNTYGB== "CORNWALL"
replace mergeclink=1 if BPSTPAGB=="ST JOHN'S" & STBPCCTYGB=="CORNWALL" & STSUBDIDGB== "ST JUST" & STRGCNTYGB== "CORNWALL"
replace mergeclink=1 if BPSTPAGB=="STAMFORD" & STBPCCTYGB=="NORTHUMBERLAND" & STSUBDIDGB== "STAMFORDHAM" & STRGCNTYGB== "NORTHUMBERLAND"
replace mergeclink=1 if BPSTPAGB=="HOLYWELL" & STBPCCTYGB=="NORTHUMBERLAND" & STSUBDIDGB== "BYWELL" & STRGCNTYGB== "NORTHUMBERLAND"
replace mergeclink=1 if BPSTPAGB=="NORHAM MAINS" & STBPCCTYGB=="NORTHUMBERLAND" & STSUBDIDGB== "NORHAMSHIRE" & STRGCNTYGB== "NORTHUMBERLAND"
replace mergeclink=1 if BPSTPAGB=="NORHAM" & STBPCCTYGB=="NORTHUMBERLAND" & STSUBDIDGB== "NORHAMSHIRE" & STRGCNTYGB== "NORTHUMBERLAND"
replace mergeclink=1 if BPSTPAGB=="CASTLE EATON" & STBPCCTYGB=="GLOUCESTERSHIRE" & STSUBDIDGB== "CASTLE PRECINCTS" & STRGCNTYGB== "GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="ASHLEWORTH" & STBPCCTYGB=="GLOUCESTERSHIRE" & STSUBDIDGB== "ASHLEY" & STRGCNTYGB== "GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="WESTCOTE" & STBPCCTYGB=="GLOUCESTERSHIRE" & STSUBDIDGB== "WESTBURY" & STRGCNTYGB== "GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="WESTRIP" & STBPCCTYGB=="GLOUCESTERSHIRE" & STSUBDIDGB== "WESTBURY" & STRGCNTYGB== "GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="MAREFIELD" & STBPCCTYGB=="LEICESTERSHIRE" & STSUBDIDGB== "MARSHFIELD" & STRGCNTYGB== "GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="ELDERSFIELD" & STBPCCTYGB=="WORCESTERSHIRE" & STSUBDIDGB== "MARSHFIELD" & STRGCNTYGB== "GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="ELDERSFIELD" & STBPCCTYGB=="GLOUCESTERSHIRE" & STSUBDIDGB== "MARSHFIELD" & STRGCNTYGB== "GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="MARKFIELD" & STBPCCTYGB=="LEICESTERSHIRE" & STSUBDIDGB== "MARSHFIELD" & STRGCNTYGB== "GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="MALMESBURY" & STBPCCTYGB=="GLOUCESTERSHIRE" & STSUBDIDGB== "ALMONDSBURY" & STRGCNTYGB== "GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="NEWTOWN" & STBPCCTYGB=="GLOUCESTERSHIRE" & STSUBDIDGB== "NEWNHAM" & STRGCNTYGB== "GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="HUNTINGFORD" & STBPCCTYGB=="GLOUCESTERSHIRE" & STSUBDIDGB== "HUNTLEY" & STRGCNTYGB== "GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="PAUNTLEY" & STBPCCTYGB=="GLOUCESTERSHIRE" & STSUBDIDGB== "HUNTLEY" & STRGCNTYGB== "GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="REDMILE" & STBPCCTYGB=="LEICESTERSHIRE" & STSUBDIDGB== "REDMARLEY" & STRGCNTYGB== "GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="KINGTON" & STBPCCTYGB=="GLOUCESTERSHIRE" & STSUBDIDGB== "KINGSHOLM" & STRGCNTYGB== "GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="KINGSWESTON" & STBPCCTYGB=="GLOUCESTERSHIRE" & STSUBDIDGB== "KINGSHOLM" & STRGCNTYGB== "GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="KINGSTANLEY" & STBPCCTYGB=="GLOUCESTERSHIRE" & STSUBDIDGB== "KINGSHOLM" & STRGCNTYGB== "GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="KINGSCOTE" & STBPCCTYGB=="GLOUCESTERSHIRE" & STSUBDIDGB== "KINGSHOLM" & STRGCNTYGB== "GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="SOUTH LITTLETON" & STBPCCTYGB=="WORCESTERSHIRE" & STSUBDIDGB== "SOUTH HAMLET" & STRGCNTYGB== "GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="SOUTHROP" & STBPCCTYGB=="GLOUCESTERSHIRE" & STSUBDIDGB== "SOUTH HAMLET" & STRGCNTYGB== "GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="SOUTH CERNEY" & STBPCCTYGB=="GLOUCESTERSHIRE" & STSUBDIDGB== "SOUTH HAMLET" & STRGCNTYGB== "GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="SOUTHWICK" & STBPCCTYGB=="GLOUCESTERSHIRE" & STSUBDIDGB== "SOUTH HAMLET" & STRGCNTYGB== "GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="FORTHAMPTON" & STBPCCTYGB=="GLOUCESTERSHIRE" & STSUBDIDGB== "FRAMPTON" & STRGCNTYGB== "GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="FRAMILODE" & STBPCCTYGB=="GLOUCESTERSHIRE" & STSUBDIDGB== "FRAMPTON" & STRGCNTYGB== "GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="HAMPTON" & STBPCCTYGB=="WORCESTERSHIRE" & STSUBDIDGB== "FRAMPTON" & STRGCNTYGB== "GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="STOULTON" & STBPCCTYGB=="WORCESTERSHIRE" & STSUBDIDGB== "STONEHOUSE" & STRGCNTYGB== "GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="STONE" & STBPCCTYGB=="WORCESTERSHIRE" & STSUBDIDGB== "STONEHOUSE" & STRGCNTYGB== "GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="STONE" & STBPCCTYGB=="GLOUCESTERSHIRE" & STSUBDIDGB== "STONEHOUSE" & STRGCNTYGB== "GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="STONEY STANTON" & STBPCCTYGB=="LEICESTERSHIRE" & STSUBDIDGB== "STONEHOUSE" & STRGCNTYGB== "GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="GORSLEY" & STBPCCTYGB=="GLOUCESTERSHIRE" & STSUBDIDGB== "HORSLEY" & STRGCNTYGB== "GLOUCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="BYFIELD" & STBPCCTYGB=="NORTHAMPTONSHIRE" & STSUBDIDGB== "BRAFIELD" & STRGCNTYGB== "NORTHAMPTONSHIRE"
replace mergeclink=1 if BPSTPAGB=="WHILTON" & STBPCCTYGB=="NORTHAMPTONSHIRE" & STSUBDIDGB== "MILTON" & STRGCNTYGB== "NORTHAMPTONSHIRE"
replace mergeclink=1 if BPSTPAGB=="PILTON" & STBPCCTYGB=="NORTHAMPTONSHIRE" & STSUBDIDGB== "MILTON" & STRGCNTYGB== "NORTHAMPTONSHIRE"
replace mergeclink=1 if BPSTPAGB=="WEEDON BECK" & STBPCCTYGB=="NORTHAMPTONSHIRE" & STSUBDIDGB== "WEEDON" & STRGCNTYGB== "NORTHAMPTONSHIRE"
replace mergeclink=1 if BPSTPAGB=="WELTON" & STBPCCTYGB=="NORTHAMPTONSHIRE" & STSUBDIDGB== "WELDON" & STRGCNTYGB== "NORTHAMPTONSHIRE"
replace mergeclink=1 if BPSTPAGB=="THORNBY" & STBPCCTYGB=="NORTHAMPTONSHIRE" & STSUBDIDGB== "THORNEY" & STRGCNTYGB== "NORTHAMPTONSHIRE"
replace mergeclink=1 if BPSTPAGB=="PETERCHURCH" & STBPCCTYGB=="HEREFORDSHIRE" & STSUBDIDGB== "DEWCHURCH" & STRGCNTYGB== "HEREFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="VOWCHURCH" & STBPCCTYGB=="HEREFORDSHIRE" & STSUBDIDGB== "DEWCHURCH" & STRGCNTYGB== "HEREFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="KENDERCHURCH" & STBPCCTYGB=="HEREFORDSHIRE" & STSUBDIDGB== "DEWCHURCH" & STRGCNTYGB== "HEREFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="LITTLE HEREFORD" & STBPCCTYGB=="HEREFORDSHIRE" & STSUBDIDGB== "HEREFORD CITY" & STRGCNTYGB== "HEREFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="LOUGHBOROUGH" & STBPCCTYGB=="SURREY" & STSUBDIDGB== "BOROUGH ROAD" & STRGCNTYGB== "SURREY"
replace mergeclink=1 if BPSTPAGB=="BOROUGHBRIDGE" & STBPCCTYGB=="SURREY" & STSUBDIDGB== "BOROUGH ROAD" & STRGCNTYGB== "SURREY"
replace mergeclink=1 if BPSTPAGB=="LONG CRENDON" & STBPCCTYGB=="SURREY" & STSUBDIDGB== "LONDON ROAD" & STRGCNTYGB== "SURREY"
replace mergeclink=1 if BPSTPAGB=="LONDON" & STBPCCTYGB=="SURREY" & STSUBDIDGB== "LONDON ROAD" & STRGCNTYGB== "SURREY"
replace mergeclink=1 if BPSTPAGB=="ST ALBANS ST PETER" & STBPCCTYGB=="SURREY" & STSUBDIDGB== "ST PETER WALWORTH" & STRGCNTYGB== "SURREY"
replace mergeclink=1 if BPSTPAGB=="EAST HORSLEY" & STBPCCTYGB=="SURREY" & STSUBDIDGB== "ST JOHN HORSLEYDOWN" & STRGCNTYGB== "SURREY"
replace mergeclink=1 if BPSTPAGB=="WEST HORSLEY" & STBPCCTYGB=="SURREY" & STSUBDIDGB== "ST JOHN HORSLEYDOWN" & STRGCNTYGB== "SURREY"
replace mergeclink=1 if BPSTPAGB=="KENSINGTON" & STBPCCTYGB=="SURREY" & STSUBDIDGB== "KENNINGTON FIRST" & STRGCNTYGB== "SURREY"
replace mergeclink=1 if BPSTPAGB=="BENNINGTON" & STBPCCTYGB=="SURREY" & STSUBDIDGB== "KENNINGTON FIRST" & STRGCNTYGB== "SURREY"
replace mergeclink=1 if BPSTPAGB=="BRIMPTON" & STBPCCTYGB=="SURREY" & STSUBDIDGB== "BRIXTON" & STRGCNTYGB== "SURREY"
replace mergeclink=1 if BPSTPAGB=="OCKHAM" & STBPCCTYGB=="SURREY" & STSUBDIDGB== "PECKHAM" & STRGCNTYGB== "SURREY"
replace mergeclink=1 if BPSTPAGB=="HATLEY ST GEORGE" & STBPCCTYGB=="SURREY" & STSUBDIDGB== "ST GEORGE" & STRGCNTYGB== "SURREY"
replace mergeclink=1 if BPSTPAGB=="WALLINGTON" & STBPCCTYGB=="SURREY" & STSUBDIDGB== "WALTON" & STRGCNTYGB== "SURREY"
replace mergeclink=1 if BPSTPAGB=="WALBERTON" & STBPCCTYGB=="SURREY" & STSUBDIDGB== "WALTON" & STRGCNTYGB== "SURREY"
replace mergeclink=1 if BPSTPAGB=="ALTON" & STBPCCTYGB=="SURREY" & STSUBDIDGB== "WALTON" & STRGCNTYGB== "SURREY"
replace mergeclink=1 if BPSTPAGB=="WATTON" & STBPCCTYGB=="SURREY" & STSUBDIDGB== "WALTON" & STRGCNTYGB== "SURREY"
replace mergeclink=1 if BPSTPAGB=="CRANFIELD" & STBPCCTYGB=="SURREY" & STSUBDIDGB== "CRANLEY" & STRGCNTYGB== "SURREY"
replace mergeclink=1 if BPSTPAGB=="CAMPTON" & STBPCCTYGB=="SURREY" & STSUBDIDGB== "HAMPTON" & STRGCNTYGB== "SURREY"
replace mergeclink=1 if BPSTPAGB=="KIMPTON" & STBPCCTYGB=="SURREY" & STSUBDIDGB== "HAMPTON" & STRGCNTYGB== "SURREY"
replace mergeclink=1 if BPSTPAGB=="HATTON" & STBPCCTYGB=="SURREY" & STSUBDIDGB== "HAMPTON" & STRGCNTYGB== "SURREY"
replace mergeclink=1 if BPSTPAGB=="COMPTON" & STBPCCTYGB=="SURREY" & STSUBDIDGB== "HAMPTON" & STRGCNTYGB== "SURREY"
replace mergeclink=1 if BPSTPAGB=="BEDHAMPTON" & STBPCCTYGB=="SURREY" & STSUBDIDGB== "HAMPTON" & STRGCNTYGB== "SURREY"
replace mergeclink=1 if BPSTPAGB=="GREYSOUTHEN" & STBPCCTYGB=="CUMBERLAND" & STSUBDIDGB== "GREYSTOKE" & STRGCNTYGB== "CUMBERLAND"
replace mergeclink=1 if BPSTPAGB=="HIGH AND LOW HIGHLAWS" & STBPCCTYGB=="NORTHUMBERLAND" & STSUBDIDGB== "HIGH LONGTOWN" & STRGCNTYGB== "CUMBERLAND"
replace mergeclink=1 if BPSTPAGB=="HIGH ANGERTON" & STBPCCTYGB=="NORTHUMBERLAND" & STSUBDIDGB== "HIGH LONGTOWN" & STRGCNTYGB== "CUMBERLAND"
replace mergeclink=1 if BPSTPAGB=="BAMBURGH" & STBPCCTYGB=="NORTHUMBERLAND" & STSUBDIDGB== "BURGH" & STRGCNTYGB== "CUMBERLAND"
replace mergeclink=1 if BPSTPAGB=="STOCKLEY" & STBPCCTYGB=="DURHAM" & STSUBDIDGB== "STOCKTON" & STRGCNTYGB== "DURHAM"
replace mergeclink=1 if BPSTPAGB=="MIDDRIDGE" & STBPCCTYGB=="DURHAM" & STSUBDIDGB== "MIDDLETON" & STRGCNTYGB== "DURHAM"
replace mergeclink=1 if BPSTPAGB=="HARTON" & STBPCCTYGB=="DURHAM" & STSUBDIDGB== "HARRATON" & STRGCNTYGB== "DURHAM"
replace mergeclink=1 if BPSTPAGB=="LLANARTH" & STBPCCTYGB=="CARDIGANSHIRE" & STSUBDIDGB== "LLANYBYTHER" & STRGCNTYGB== "CARDIGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGYBY" & STBPCCTYGB=="CARDIGANSHIRE" & STSUBDIDGB== "LLANYBYTHER" & STRGCNTYGB== "CARDIGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANON" & STBPCCTYGB=="CARDIGANSHIRE" & STSUBDIDGB== "LLANYBYTHER" & STRGCNTYGB== "CARDIGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGRANOG" & STBPCCTYGB=="CARDIGANSHIRE" & STSUBDIDGB== "LLANYBYTHER" & STRGCNTYGB== "CARDIGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANDDEWI-ABERARTH" & STBPCCTYGB=="CARDIGANSHIRE" & STSUBDIDGB== "LLANYBYTHER" & STRGCNTYGB== "CARDIGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANYCHAIARN" & STBPCCTYGB=="CARDIGANSHIRE" & STSUBDIDGB== "LLANYBYTHER" & STRGCNTYGB== "CARDIGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANAFAN" & STBPCCTYGB=="CARDIGANSHIRE" & STSUBDIDGB== "LLANYBYTHER" & STRGCNTYGB== "CARDIGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGUNLLO" & STBPCCTYGB=="CARDIGANSHIRE" & STSUBDIDGB== "LLANYBYTHER" & STRGCNTYGB== "CARDIGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANCYNFELIN" & STBPCCTYGB=="CARDIGANSHIRE" & STSUBDIDGB== "LLANDISILIO" & STRGCNTYGB== "CARDIGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGUNLLO" & STBPCCTYGB=="CARDIGANSHIRE" & STSUBDIDGB== "LLANDISILIO" & STRGCNTYGB== "CARDIGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGRANOG" & STBPCCTYGB=="CARDIGANSHIRE" & STSUBDIDGB== "LLANDISILIO" & STRGCNTYGB== "CARDIGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANILAR" & STBPCCTYGB=="CARDIGANSHIRE" & STSUBDIDGB== "LLANDISILIO" & STRGCNTYGB== "CARDIGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANON" & STBPCCTYGB=="CARDIGANSHIRE" & STSUBDIDGB== "LLANDISILIO" & STRGCNTYGB== "CARDIGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANAFAN" & STBPCCTYGB=="CARDIGANSHIRE" & STSUBDIDGB== "LLANDISILIO" & STRGCNTYGB== "CARDIGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANAFAN" & STBPCCTYGB=="CARDIGANSHIRE" & STSUBDIDGB== "LLANRHYSTYD" & STRGCNTYGB== "CARDIGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGUNLLO" & STBPCCTYGB=="CARDIGANSHIRE" & STSUBDIDGB== "LLANRHYSTYD" & STRGCNTYGB== "CARDIGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANON" & STBPCCTYGB=="CARDIGANSHIRE" & STSUBDIDGB== "LLANRHYSTYD" & STRGCNTYGB== "CARDIGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANDYFEISANT" & STBPCCTYGB=="CARMARTHENSHIRE" & STSUBDIDGB== "LLANDDAUSAINT" & STRGCNTYGB== "CARMARTHENSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGAIN" & STBPCCTYGB=="CARMARTHENSHIRE" & STSUBDIDGB== "LLANDDAUSAINT" & STRGCNTYGB== "CARMARTHENSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANDDAROG" & STBPCCTYGB=="CARMARTHENSHIRE" & STSUBDIDGB== "LLANDDAUSAINT" & STRGCNTYGB== "CARMARTHENSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANSAWEL" & STBPCCTYGB=="CARMARTHENSHIRE" & STSUBDIDGB== "LLANDDAUSAINT" & STRGCNTYGB== "CARMARTHENSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANARTHNEY" & STBPCCTYGB=="CARMARTHENSHIRE" & STSUBDIDGB== "LLANWRTYD" & STRGCNTYGB== "CARMARTHENSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANWRDA" & STBPCCTYGB=="CARMARTHENSHIRE" & STSUBDIDGB== "LLANWRTYD" & STRGCNTYGB== "CARMARTHENSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANSAWEL" & STBPCCTYGB=="CARMARTHENSHIRE" & STSUBDIDGB== "LLANDILO" & STRGCNTYGB== "CARMARTHENSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANBOIDY" & STBPCCTYGB=="CARMARTHENSHIRE" & STSUBDIDGB== "LLANDILO" & STRGCNTYGB== "CARMARTHENSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANDOWROR" & STBPCCTYGB=="CARMARTHENSHIRE" & STSUBDIDGB== "LLANDILO" & STRGCNTYGB== "CARMARTHENSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANEDY" & STBPCCTYGB=="CARMARTHENSHIRE" & STSUBDIDGB== "LLANDILO" & STRGCNTYGB== "CARMARTHENSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANEGWAD" & STBPCCTYGB=="CARMARTHENSHIRE" & STSUBDIDGB== "LLANDILO" & STRGCNTYGB== "CARMARTHENSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANLLWNY" & STBPCCTYGB=="CARMARTHENSHIRE" & STSUBDIDGB== "LLANDILO" & STRGCNTYGB== "CARMARTHENSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANDAWKE" & STBPCCTYGB=="CARMARTHENSHIRE" & STSUBDIDGB== "LLANDILO" & STRGCNTYGB== "CARMARTHENSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANSTEPHAN" & STBPCCTYGB=="CARMARTHENSHIRE" & STSUBDIDGB== "LLANDILO" & STRGCNTYGB== "CARMARTHENSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANDEFEILOG" & STBPCCTYGB=="CARMARTHENSHIRE" & STSUBDIDGB== "LLANDILO" & STRGCNTYGB== "CARMARTHENSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANLLAWDDOG" & STBPCCTYGB=="CARMARTHENSHIRE" & STSUBDIDGB== "LLANDILO" & STRGCNTYGB== "CARMARTHENSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGUNNOR" & STBPCCTYGB=="CARMARTHENSHIRE" & STSUBDIDGB== "LLANGENDEIRNE" & STRGCNTYGB== "CARMARTHENSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGELER" & STBPCCTYGB=="CARMARTHENSHIRE" & STSUBDIDGB== "LLANGENDEIRNE" & STRGCNTYGB== "CARMARTHENSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGLYDWEN" & STBPCCTYGB=="CARMARTHENSHIRE" & STSUBDIDGB== "LLANGENDEIRNE" & STRGCNTYGB== "CARMARTHENSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGENNECH" & STBPCCTYGB=="CARMARTHENSHIRE" & STSUBDIDGB== "LLANGENDEIRNE" & STRGCNTYGB== "CARMARTHENSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANEGWAD" & STBPCCTYGB=="CARMARTHENSHIRE" & STSUBDIDGB== "LLANGENDEIRNE" & STRGCNTYGB== "CARMARTHENSHIRE"
replace mergeclink=1 if BPSTPAGB=="STAPLEFORD" & STBPCCTYGB=="LINCOLNSHIRE" & STSUBDIDGB== "STAMFORD" & STRGCNTYGB== "LINCOLNSHIRE"
replace mergeclink=1 if BPSTPAGB=="STICKFORD" & STBPCCTYGB=="LINCOLNSHIRE" & STSUBDIDGB== "STAMFORD" & STRGCNTYGB== "LINCOLNSHIRE"
replace mergeclink=1 if BPSTPAGB=="BARNOLDBY-LE-BECK" & STBPCCTYGB=="LINCOLNSHIRE" & STSUBDIDGB== "BARNACK" & STRGCNTYGB== "LINCOLNSHIRE"
replace mergeclink=1 if BPSTPAGB=="BENNIWORTH" & STBPCCTYGB=="LINCOLNSHIRE" & STSUBDIDGB== "BENNINGTON" & STRGCNTYGB== "LINCOLNSHIRE"
replace mergeclink=1 if BPSTPAGB=="DONINGTON UPON BAIN" & STBPCCTYGB=="LINCOLNSHIRE" & STSUBDIDGB== "BENNINGTON" & STRGCNTYGB== "LINCOLNSHIRE"
replace mergeclink=1 if BPSTPAGB=="HONINGTON" & STBPCCTYGB=="LINCOLNSHIRE" & STSUBDIDGB== "BENNINGTON" & STRGCNTYGB== "LINCOLNSHIRE"
replace mergeclink=1 if BPSTPAGB=="LONG BENNINGTON" & STBPCCTYGB=="LINCOLNSHIRE" & STSUBDIDGB== "BENNINGTON" & STRGCNTYGB== "LINCOLNSHIRE"
replace mergeclink=1 if BPSTPAGB=="FLEET" & STBPCCTYGB=="LINCOLNSHIRE" & STSUBDIDGB== "WAINFLEET" & STRGCNTYGB== "LINCOLNSHIRE"
replace mergeclink=1 if BPSTPAGB=="BURRINGHAM" & STBPCCTYGB=="LINCOLNSHIRE" & STSUBDIDGB== "BURGH" & STRGCNTYGB== "LINCOLNSHIRE"
replace mergeclink=1 if BPSTPAGB=="FLEET" & STBPCCTYGB=="LINCOLNSHIRE" & STSUBDIDGB== "SALTFLEET" & STRGCNTYGB== "LINCOLNSHIRE"
replace mergeclink=1 if BPSTPAGB=="SALEBY" & STBPCCTYGB=="LINCOLNSHIRE" & STSUBDIDGB== "SALTFLEET" & STRGCNTYGB== "LINCOLNSHIRE"
replace mergeclink=1 if BPSTPAGB=="BRIGSLEY" & STBPCCTYGB=="LINCOLNSHIRE" & STSUBDIDGB== "BRIGG" & STRGCNTYGB== "LINCOLNSHIRE"
replace mergeclink=1 if BPSTPAGB=="BASTON" & STBPCCTYGB=="LINCOLNSHIRE" & STSUBDIDGB== "BARTON" & STRGCNTYGB== "LINCOLNSHIRE"
replace mergeclink=1 if BPSTPAGB=="BARKSTON" & STBPCCTYGB=="LINCOLNSHIRE" & STSUBDIDGB== "BARTON" & STRGCNTYGB== "LINCOLNSHIRE"
replace mergeclink=1 if BPSTPAGB=="BURTON" & STBPCCTYGB=="LINCOLNSHIRE" & STSUBDIDGB== "BARTON" & STRGCNTYGB== "LINCOLNSHIRE"
replace mergeclink=1 if BPSTPAGB=="FISKERTON" & STBPCCTYGB=="LINCOLNSHIRE" & STSUBDIDGB== "MISTERTON" & STRGCNTYGB== "LINCOLNSHIRE"
replace mergeclink=1 if BPSTPAGB=="MISSON" & STBPCCTYGB=="LINCOLNSHIRE" & STSUBDIDGB== "MISTERTON" & STRGCNTYGB== "LINCOLNSHIRE"
replace mergeclink=1 if BPSTPAGB=="SUTTERTON" & STBPCCTYGB=="LINCOLNSHIRE" & STSUBDIDGB== "MISTERTON" & STRGCNTYGB== "LINCOLNSHIRE"
replace mergeclink=1 if BPSTPAGB=="PENNANT" & STBPCCTYGB=="MONTGOMERYSHIRE" & STSUBDIDGB== "PENNAL" & STRGCNTYGB== "MONTGOMERYSHIRE"
replace mergeclink=1 if BPSTPAGB=="PENALT" & STBPCCTYGB=="MONMOUTHSHIRE" & STSUBDIDGB== "PENNAL" & STRGCNTYGB== "MONTGOMERYSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANLLUGAN" & STBPCCTYGB=="MONTGOMERYSHIRE" & STSUBDIDGB== "LLANFAIR" & STRGCNTYGB== "MONTGOMERYSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGADFAN" & STBPCCTYGB=="MONTGOMERYSHIRE" & STSUBDIDGB== "LLANFAIR" & STRGCNTYGB== "MONTGOMERYSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANFECHAN" & STBPCCTYGB=="MONTGOMERYSHIRE" & STSUBDIDGB== "LLANFAIR" & STRGCNTYGB== "MONTGOMERYSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANWRIN" & STBPCCTYGB=="MONTGOMERYSHIRE" & STSUBDIDGB== "LLANFAIR" & STRGCNTYGB== "MONTGOMERYSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGYNOG" & STBPCCTYGB=="MONTGOMERYSHIRE" & STSUBDIDGB== "LLANFAIR" & STRGCNTYGB== "MONTGOMERYSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANWDDYN" & STBPCCTYGB=="MONTGOMERYSHIRE" & STSUBDIDGB== "LLANFAIR" & STRGCNTYGB== "MONTGOMERYSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANFYLLIN" & STBPCCTYGB=="MONTGOMERYSHIRE" & STSUBDIDGB== "LLANFAIR" & STRGCNTYGB== "MONTGOMERYSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANERFYL" & STBPCCTYGB=="MONTGOMERYSHIRE" & STSUBDIDGB== "LLANFAIR" & STRGCNTYGB== "MONTGOMERYSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANFIHANGEL" & STBPCCTYGB=="MONTGOMERYSHIRE" & STSUBDIDGB== "LLANFAIR" & STRGCNTYGB== "MONTGOMERYSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANBRYNMAIR" & STBPCCTYGB=="MONTGOMERYSHIRE" & STSUBDIDGB== "LLANFAIR" & STRGCNTYGB== "MONTGOMERYSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANDINAM" & STBPCCTYGB=="MONTGOMERYSHIRE" & STSUBDIDGB== "LLANFAIR" & STRGCNTYGB== "MONTGOMERYSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANDYSSIL" & STBPCCTYGB=="MONTGOMERYSHIRE" & STSUBDIDGB== "LLANFAIR" & STRGCNTYGB== "MONTGOMERYSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGURIG" & STBPCCTYGB=="MONTGOMERYSHIRE" & STSUBDIDGB== "LLANFAIR" & STRGCNTYGB== "MONTGOMERYSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANRHAIADR-YN-MOCHNANT SOUTH" & STBPCCTYGB=="MONTGOMERYSHIRE" & STSUBDIDGB== "LLANRHAIADR" & STRGCNTYGB== "MONTGOMERYSHIRE"
replace mergeclink=1 if BPSTPAGB=="HONINGTON" & STBPCCTYGB=="WARWICK" & STSUBDIDGB== "ERDINGTON" & STRGCNTYGB== "WARWICK"
replace mergeclink=1 if BPSTPAGB=="ROWINGTON" & STBPCCTYGB=="WARWICK" & STSUBDIDGB== "ERDINGTON" & STRGCNTYGB== "WARWICK"
replace mergeclink=1 if BPSTPAGB=="CHERRINGTON" & STBPCCTYGB=="WARWICK" & STSUBDIDGB== "ERDINGTON" & STRGCNTYGB== "WARWICK"
replace mergeclink=1 if BPSTPAGB=="LUDDINGTON" & STBPCCTYGB=="WARWICK" & STSUBDIDGB== "ERDINGTON" & STRGCNTYGB== "WARWICK"
replace mergeclink=1 if BPSTPAGB=="BURMINGTON" & STBPCCTYGB=="WARWICK" & STSUBDIDGB== "LEAMINGTON" & STRGCNTYGB== "WARWICK"
replace mergeclink=1 if BPSTPAGB=="ILMINGTON" & STBPCCTYGB=="WARWICK" & STSUBDIDGB== "LEAMINGTON" & STRGCNTYGB== "WARWICK"
replace mergeclink=1 if BPSTPAGB=="EATINGTON" & STBPCCTYGB=="WARWICK" & STSUBDIDGB== "LEAMINGTON" & STRGCNTYGB== "WARWICK"
replace mergeclink=1 if BPSTPAGB=="LONG ITCHINGTON" & STBPCCTYGB=="WARWICK" & STSUBDIDGB== "LEAMINGTON" & STRGCNTYGB== "WARWICK"
replace mergeclink=1 if BPSTPAGB=="STRETTON ON DUNSMORE" & STBPCCTYGB=="WARWICK" & STSUBDIDGB== "MORETON" & STRGCNTYGB== "WARWICK"
replace mergeclink=1 if BPSTPAGB=="ABER" & STBPCCTYGB=="CAERNARVONSHIRE" & STSUBDIDGB== "ABERDARON" & STRGCNTYGB== "CAERNARVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="ABERERCH" & STBPCCTYGB=="CAERNARVONSHIRE" & STSUBDIDGB== "ABERDARON" & STRGCNTYGB== "CAERNARVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGWSTENNIN" & STBPCCTYGB=="CAERNARVONSHIRE" & STSUBDIDGB== "LLANIDAN" & STRGCNTYGB== "CAERNARVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANBEBLIG" & STBPCCTYGB=="CAERNARVONSHIRE" & STSUBDIDGB== "LLANIDAN" & STRGCNTYGB== "CAERNARVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANNOR" & STBPCCTYGB=="CAERNARVONSHIRE" & STSUBDIDGB== "LLANIDAN" & STRGCNTYGB== "CAERNARVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANLLYFNI" & STBPCCTYGB=="CAERNARVONSHIRE" & STSUBDIDGB== "LLANIDAN" & STRGCNTYGB== "CAERNARVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANWNDA" & STBPCCTYGB=="CAERNARVONSHIRE" & STSUBDIDGB== "LLANIDAN" & STRGCNTYGB== "CAERNARVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANBERIS" & STBPCCTYGB=="CAERNARVONSHIRE" & STSUBDIDGB== "LLANIDAN" & STRGCNTYGB== "CAERNARVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANENGAN" & STBPCCTYGB=="CAERNARVONSHIRE" & STSUBDIDGB== "LLANIDAN" & STRGCNTYGB== "CAERNARVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANDUDNO" & STBPCCTYGB=="CAERNARVONSHIRE" & STSUBDIDGB== "LLANIDAN" & STRGCNTYGB== "CAERNARVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANDEGAI" & STBPCCTYGB=="CAERNARVONSHIRE" & STSUBDIDGB== "LLANIDAN" & STRGCNTYGB== "CAERNARVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANDDEINIOLEN" & STBPCCTYGB=="CAERNARVONSHIRE" & STSUBDIDGB== "LLANIDAN" & STRGCNTYGB== "CAERNARVONSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANHILLETH" & STBPCCTYGB=="MONMOUTHSHIRE" & STSUBDIDGB== "LLANVIHANGEL" & STRGCNTYGB== "MONMOUTHSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGATTOCK" & STBPCCTYGB=="MONMOUTHSHIRE" & STSUBDIDGB== "LLANVIHANGEL" & STRGCNTYGB== "MONMOUTHSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGUA" & STBPCCTYGB=="MONMOUTHSHIRE" & STSUBDIDGB== "LLANVIHANGEL" & STRGCNTYGB== "MONMOUTHSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANELLEN" & STBPCCTYGB=="MONMOUTHSHIRE" & STSUBDIDGB== "LLANVIHANGEL" & STRGCNTYGB== "MONMOUTHSHIRE"
replace mergeclink=1 if BPSTPAGB=="TREDUNNOCK" & STBPCCTYGB=="MONMOUTHSHIRE" & STSUBDIDGB== "TREDEGAR" & STRGCNTYGB== "MONMOUTHSHIRE"
replace mergeclink=1 if BPSTPAGB=="TREGARE" & STBPCCTYGB=="MONMOUTHSHIRE" & STSUBDIDGB== "TREDEGAR" & STRGCNTYGB== "MONMOUTHSHIRE"
replace mergeclink=1 if BPSTPAGB=="ROCKFIELD" & STBPCCTYGB=="MONMOUTHSHIRE" & STSUBDIDGB== "ROCK BEDWELTY" & STRGCNTYGB== "MONMOUTHSHIRE"
replace mergeclink=1 if BPSTPAGB=="ABBINGDON" & STBPCCTYGB=="BERKSHIRE" & STSUBDIDGB== "FARINGDON" & STRGCNTYGB== "BERKSHIRE"
replace mergeclink=1 if BPSTPAGB=="SHELLINGFORD" & STBPCCTYGB=="BERKSHIRE" & STSUBDIDGB== "WALLINGFORD" & STRGCNTYGB== "BERKSHIRE"
replace mergeclink=1 if BPSTPAGB=="WALLINGWELLS" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "WALLINGFORD" & STRGCNTYGB== "BERKSHIRE"
replace mergeclink=1 if BPSTPAGB=="WALLINGFEN" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "WALLINGFORD" & STRGCNTYGB== "BERKSHIRE"
replace mergeclink=1 if BPSTPAGB=="ST LAWRENCE" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "ST LAWRENCE" & STRGCNTYGB== "BERKSHIRE"
replace mergeclink=1 if BPSTPAGB=="BRACKEN" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "BRACKNELL" & STRGCNTYGB== "BERKSHIRE"
replace mergeclink=1 if BPSTPAGB=="BRACEWELL" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "BRACKNELL" & STRGCNTYGB== "BERKSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANDRILLO" & STBPCCTYGB=="MERIONETHSHIRE" & STSUBDIDGB== "LLANGOLLEN" & STRGCNTYGB== "MERIONETHSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANENDDWYN" & STBPCCTYGB=="MERIONETHSHIRE" & STSUBDIDGB== "LLANGOLLEN" & STRGCNTYGB== "MERIONETHSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGAR" & STBPCCTYGB=="MERIONETHSHIRE" & STSUBDIDGB== "LLANGOLLEN" & STRGCNTYGB== "MERIONETHSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANELLTYD" & STBPCCTYGB=="MERIONETHSHIRE" & STSUBDIDGB== "LLANGOLLEN" & STRGCNTYGB== "MERIONETHSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGOWER" & STBPCCTYGB=="MERIONETHSHIRE" & STSUBDIDGB== "LLANGOLLEN" & STRGCNTYGB== "MERIONETHSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANBEDR" & STBPCCTYGB=="MERIONETHSHIRE" & STSUBDIDGB== "LLANGOLLEN" & STRGCNTYGB== "MERIONETHSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANFOR" & STBPCCTYGB=="MERIONETHSHIRE" & STSUBDIDGB== "LLANGOLLEN" & STRGCNTYGB== "MERIONETHSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANABER" & STBPCCTYGB=="MERIONETHSHIRE" & STSUBDIDGB== "LLANGOLLEN" & STRGCNTYGB== "MERIONETHSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANYCIL" & STBPCCTYGB=="MERIONETHSHIRE" & STSUBDIDGB== "LLANGOLLEN" & STRGCNTYGB== "MERIONETHSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANFACHRETH" & STBPCCTYGB=="MERIONETHSHIRE" & STSUBDIDGB== "LLANFIHANGEL-Y-TRAETHAU" & STRGCNTYGB== "MERIONETHSHIRE"
replace mergeclink=1 if BPSTPAGB=="ST MARY BOURNE" & STBPCCTYGB=="HAMPSHIRE" & STSUBDIDGB== "ST MARY EXTRA" & STRGCNTYGB== "HAMPSHIRE"
replace mergeclink=1 if BPSTPAGB=="ROMSLEY" & STBPCCTYGB=="SHROPSHIRE" & STSUBDIDGB== "ROMSEY" & STRGCNTYGB== "HAMPSHIRE"
replace mergeclink=1 if BPSTPAGB=="MARTYR WORTHY" & STBPCCTYGB=="HAMPSHIRE" & STSUBDIDGB== "THE WORTHYS" & STRGCNTYGB== "HAMPSHIRE"
replace mergeclink=1 if BPSTPAGB=="CHARMINSTER" & STBPCCTYGB=="DORSET" & STSUBDIDGB== "STURMINSTER" & STRGCNTYGB== "DORSET"
replace mergeclink=1 if BPSTPAGB=="AXMINSTER" & STBPCCTYGB=="DORSET" & STSUBDIDGB== "STURMINSTER" & STRGCNTYGB== "DORSET"
replace mergeclink=1 if BPSTPAGB=="OBORNE" & STBPCCTYGB=="DORSET" & STSUBDIDGB== "WIMBORNE" & STRGCNTYGB== "DORSET"
replace mergeclink=1 if BPSTPAGB=="HANFORD" & STBPCCTYGB=="DORSET" & STSUBDIDGB== "CANFORD" & STRGCNTYGB== "DORSET"
replace mergeclink=1 if BPSTPAGB=="THORNFORD" & STBPCCTYGB=="DORSET" & STSUBDIDGB== "CANFORD" & STRGCNTYGB== "DORSET"
replace mergeclink=1 if BPSTPAGB=="CHETTLE" & STBPCCTYGB=="DORSET" & STSUBDIDGB== "LYTCHETT" & STRGCNTYGB== "DORSET"
replace mergeclink=1 if BPSTPAGB=="BOURN" & STBPCCTYGB=="CAMBRIDGESHIRE" & STSUBDIDGB== "FULBOURN" & STRGCNTYGB== "CAMBRIDGESHIRE"
replace mergeclink=1 if BPSTPAGB=="MELBOURN" & STBPCCTYGB=="CAMBRIDGESHIRE" & STSUBDIDGB== "FULBOURN" & STRGCNTYGB== "CAMBRIDGESHIRE"
replace mergeclink=1 if BPSTPAGB=="YSTRADOWEN" & STBPCCTYGB=="GLAMORGANSHIRE" & STSUBDIDGB== "YSTRADYFODWG" & STRGCNTYGB== "GLAMORGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="STEMBRIDGE" & STBPCCTYGB=="GLAMORGANSHIRE" & STSUBDIDGB== "BRIDGEND" & STRGCNTYGB== "GLAMORGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGUICK" & STBPCCTYGB=="GLAMORGANSHIRE" & STSUBDIDGB== "LLANGAFELACH" & STRGCNTYGB== "GLAMORGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANDAFF" & STBPCCTYGB=="GLAMORGANSHIRE" & STSUBDIDGB== "LLANGAFELACH" & STRGCNTYGB== "GLAMORGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGAN" & STBPCCTYGB=="GLAMORGANSHIRE" & STSUBDIDGB== "LLANGAFELACH" & STRGCNTYGB== "GLAMORGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANHARAN" & STBPCCTYGB=="GLAMORGANSHIRE" & STSUBDIDGB== "LLANSAMLET" & STRGCNTYGB== "GLAMORGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANDOW" & STBPCCTYGB=="GLAMORGANSHIRE" & STSUBDIDGB== "LLANSAMLET" & STRGCNTYGB== "GLAMORGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANBLETHIAN" & STBPCCTYGB=="GLAMORGANSHIRE" & STSUBDIDGB== "LLANSAMLET" & STRGCNTYGB== "GLAMORGANSHIRE"
replace mergeclink=1 if BPSTPAGB=="WISTOW" & STBPCCTYGB=="LEICESTERSHIRE" & STSUBDIDGB== "WIGSTON" & STRGCNTYGB== "LEICESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="STOCKERSTON" & STBPCCTYGB=="LEICESTERSHIRE" & STSUBDIDGB== "WIGSTON" & STRGCNTYGB== "LEICESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="SHARNFORD" & STBPCCTYGB=="LEICESTERSHIRE" & STSUBDIDGB== "HARTSHORN" & STRGCNTYGB== "LEICESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="EAST LANGTON" & STBPCCTYGB=="LEICESTERSHIRE" & STSUBDIDGB== "EAST LEICESTER" & STRGCNTYGB== "LEICESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="FARINGTON" & STBPCCTYGB=="LANCASHIRE" & STSUBDIDGB== "ISLINGTON" & STRGCNTYGB== "LANCASHIRE"
replace mergeclink=1 if BPSTPAGB=="ADLINGTON" & STBPCCTYGB=="LANCASHIRE" & STSUBDIDGB== "ISLINGTON" & STRGCNTYGB== "LANCASHIRE"
replace mergeclink=1 if BPSTPAGB=="HALTON" & STBPCCTYGB=="LANCASHIRE" & STSUBDIDGB== "WALTON" & STRGCNTYGB== "LANCASHIRE"
replace mergeclink=1 if BPSTPAGB=="RISHTON" & STBPCCTYGB=="LANCASHIRE" & STSUBDIDGB== "RIXTON" & STRGCNTYGB== "LANCASHIRE"
replace mergeclink=1 if BPSTPAGB=="FLIXTON" & STBPCCTYGB=="LANCASHIRE" & STSUBDIDGB== "RIXTON" & STRGCNTYGB== "LANCASHIRE"
replace mergeclink=1 if BPSTPAGB=="HUTTON" & STBPCCTYGB=="LANCASHIRE" & STSUBDIDGB== "HULTON" & STRGCNTYGB== "LANCASHIRE"
replace mergeclink=1 if BPSTPAGB=="CLEVELEY" & STBPCCTYGB=="LANCASHIRE" & STSUBDIDGB== "LEVER" & STRGCNTYGB== "LANCASHIRE"
replace mergeclink=1 if BPSTPAGB=="LEVENSHULME" & STBPCCTYGB=="LANCASHIRE" & STSUBDIDGB== "LEVER" & STRGCNTYGB== "LANCASHIRE"
replace mergeclink=1 if BPSTPAGB=="BIRKDALE" & STBPCCTYGB=="LANCASHIRE" & STSUBDIDGB== "BIRTLE" & STRGCNTYGB== "LANCASHIRE"
replace mergeclink=1 if BPSTPAGB=="OPENSHAW" & STBPCCTYGB=="LANCASHIRE" & STSUBDIDGB== "AUDENSHAW" & STRGCNTYGB== "LANCASHIRE"
replace mergeclink=1 if BPSTPAGB=="CARLETON" & STBPCCTYGB=="LANCASHIRE" & STSUBDIDGB== "CASTLETON NEARER" & STRGCNTYGB== "LANCASHIRE"
replace mergeclink=1 if BPSTPAGB=="CUERDLEY" & STBPCCTYGB=="LANCASHIRE" & STSUBDIDGB== "WUERDLE" & STRGCNTYGB== "LANCASHIRE"
replace mergeclink=1 if BPSTPAGB=="CUERDALE" & STBPCCTYGB=="LANCASHIRE" & STSUBDIDGB== "WUERDLE" & STRGCNTYGB== "LANCASHIRE"
replace mergeclink=1 if BPSTPAGB=="WHITWOOD" & STBPCCTYGB=="LANCASHIRE" & STSUBDIDGB== "WHITWORTH" & STRGCNTYGB== "LANCASHIRE"
replace mergeclink=1 if BPSTPAGB=="ROEBURNDALE" & STBPCCTYGB=="LANCASHIRE" & STSUBDIDGB== "ROSSENDALE" & STRGCNTYGB== "LANCASHIRE"
replace mergeclink=1 if BPSTPAGB=="PENDLEBURY" & STBPCCTYGB=="LANCASHIRE" & STSUBDIDGB== "PENDLE" & STRGCNTYGB== "LANCASHIRE"
replace mergeclink=1 if BPSTPAGB=="BILLINGE CHAPEL END" & STBPCCTYGB=="LANCASHIRE" & STSUBDIDGB== "BILLINGTON" & STRGCNTYGB== "LANCASHIRE"
replace mergeclink=1 if BPSTPAGB=="PILLING" & STBPCCTYGB=="LANCASHIRE" & STSUBDIDGB== "BILLINGTON" & STRGCNTYGB== "LANCASHIRE"
replace mergeclink=1 if BPSTPAGB=="CRONTON" & STBPCCTYGB=="LANCASHIRE" & STSUBDIDGB== "CATON" & STRGCNTYGB== "LANCASHIRE"
replace mergeclink=1 if BPSTPAGB=="CARLETON" & STBPCCTYGB=="LANCASHIRE" & STSUBDIDGB== "CATON" & STRGCNTYGB== "LANCASHIRE"
replace mergeclink=1 if BPSTPAGB=="WELTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "SKELTON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="MELTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "SKELTON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="SKELDEN" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "SKELTON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="WRELTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "SKELTON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="SKELLOW" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "SKELTON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="ELTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "SKELTON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="HOTHAM" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "BOOTHAM" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="MICKLEBY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "MICKLEGATE" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="MICKLETON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "MICKLEGATE" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="MICKLEFIELD" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "MICKLEGATE" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="HUNTINGTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "DUNNINGTON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="NUNNINGTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "DUNNINGTON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="DINNINGTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "DUNNINGTON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="LAXTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "FLAXTON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="BLAXTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "FLAXTON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="FLAXBY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "FLAXTON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="CLAXTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "FLAXTON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="POLLINGTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "POCKLINGTON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="BALKHOLME" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "HOLME" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="ERYHOLME" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "HOLME" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="DOWNHOLME" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "HOLME" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="HOLME ON THE WOLDS" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "HOLME" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="HOLMPTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "HOLME" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="WAXHOLME" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "HOLME" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="SOUTH DALTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "SOUTH CAVE" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="SOUTH CLIFF" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "SOUTH CAVE" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="SOUTHBURN" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "SOUTH CAVE" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="SOUTH HOLME" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "SOUTH CAVE" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="SOUTH STAINLEY WITH CAYTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "SOUTH CAVE" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="SOUTH MILFORD" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "SOUTH CAVE" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="SOUTH COWTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "SOUTH CAVE" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="SOUTH KIRKBY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "SOUTH CAVE" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="SOUTH ELMSALL" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "SOUTH CAVE" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="SOUTH CROSLAND" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "SOUTH CAVE" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="BEWERLEY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "BEVERLEY" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="WALKINGTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "LOCKINGTON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="COLLINGHAM" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "COTTINGHAM" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="OTTRINGHAM" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "COTTINGHAM" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="HESSAY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "HESSLE" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="POOL" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "DRYPOOL" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="EAST NESS" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "EAST SCULCOATES" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="WEST SCRAFTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "WEST SCULCOATES" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="HUMBERTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "HUMBER" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="ST MARTIN-LE-GRAND" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "ST MARY" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="ST MARGARET WALMGATE" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "ST MARY" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="WYTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "MYTON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="RYTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "MYTON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="TOWTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "MYTON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="PATRICK-BROMPTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "PATRINGTON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="EASTRINGTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "PATRINGTON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="SETTRINGTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "PATRINGTON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="WOMBLETON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "HUMBLETON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="HAMBLETON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "HUMBLETON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="BROUGH" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "ALDBROUGH" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="HORNBY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "HORNSEA" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="ESTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "FOSTON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="HELLIFIELD" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "DRIFFIELD" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="STAINTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "BAINTON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="FLINTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "BAINTON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="SWINTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "BAINTON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="WINTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "BAINTON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="LINTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "BAINTON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="GRINTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "BAINTON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="SNAINTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "BAINTON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="LANGTHORPE" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "LANGTOFT" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="LANGTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "LANGTOFT" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="LANGWITH" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "LANGTOFT" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="KNEDLINGTON" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "BRIDLINGTON" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="MAUNBY" & STBPCCTYGB=="YORKSHIRE" & STSUBDIDGB== "HUNMANBY" & STRGCNTYGB== "YORKSHIRE EAST"
replace mergeclink=1 if BPSTPAGB=="LLANHOWELL" & STBPCCTYGB=="PEMBROKESHIRE" & STSUBDIDGB== "LLANBOIDY" & STRGCNTYGB== "PEMBROKESHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANSTADWELL" & STBPCCTYGB=="PEMBROKESHIRE" & STSUBDIDGB== "LLANBOIDY" & STRGCNTYGB== "PEMBROKESHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANSTINAN" & STBPCCTYGB=="PEMBROKESHIRE" & STSUBDIDGB== "LLANBOIDY" & STRGCNTYGB== "PEMBROKESHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANYCEFN" & STBPCCTYGB=="PEMBROKESHIRE" & STSUBDIDGB== "LLANBOIDY" & STRGCNTYGB== "PEMBROKESHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANRIAN" & STBPCCTYGB=="PEMBROKESHIRE" & STSUBDIDGB== "LLANBOIDY" & STRGCNTYGB== "PEMBROKESHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANTOOD" & STBPCCTYGB=="PEMBROKESHIRE" & STSUBDIDGB== "LLANBOIDY" & STRGCNTYGB== "PEMBROKESHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANDILO" & STBPCCTYGB=="PEMBROKESHIRE" & STSUBDIDGB== "LLANDISSILIO" & STRGCNTYGB== "PEMBROKESHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANWNDA" & STBPCCTYGB=="PEMBROKESHIRE" & STSUBDIDGB== "LLANDISSILIO" & STRGCNTYGB== "PEMBROKESHIRE"
replace mergeclink=1 if BPSTPAGB=="BROKENBOROUGH" & STBPCCTYGB=="WILTSHIRE" & STSUBDIDGB== "MARLBOROUGH" & STRGCNTYGB== "WILTSHIRE"
replace mergeclink=1 if BPSTPAGB=="WANBOROUGH" & STBPCCTYGB=="WILTSHIRE" & STSUBDIDGB== "MARLBOROUGH" & STRGCNTYGB== "WILTSHIRE"
replace mergeclink=1 if BPSTPAGB=="HULLAVINGTON" & STBPCCTYGB=="WILTSHIRE" & STSUBDIDGB== "LAVINGTON" & STRGCNTYGB== "WILTSHIRE"
replace mergeclink=1 if BPSTPAGB=="HOMINGTON" & STBPCCTYGB=="WILTSHIRE" & STSUBDIDGB== "LAVINGTON" & STRGCNTYGB== "WILTSHIRE"
replace mergeclink=1 if BPSTPAGB=="LIDDINGTON" & STBPCCTYGB=="WILTSHIRE" & STSUBDIDGB== "LAVINGTON" & STRGCNTYGB== "WILTSHIRE"
replace mergeclink=1 if BPSTPAGB=="ALLINGTON" & STBPCCTYGB=="WILTSHIRE" & STSUBDIDGB== "LAVINGTON" & STRGCNTYGB== "WILTSHIRE"
replace mergeclink=1 if BPSTPAGB=="LUCKINGTON" & STBPCCTYGB=="WILTSHIRE" & STSUBDIDGB== "LAVINGTON" & STRGCNTYGB== "WILTSHIRE"
replace mergeclink=1 if BPSTPAGB=="YATESBURY" & STBPCCTYGB=="WILTSHIRE" & STSUBDIDGB== "HEYTESBURY" & STRGCNTYGB== "WILTSHIRE"
replace mergeclink=1 if BPSTPAGB=="WINTERSLOW" & STBPCCTYGB=="WILTSHIRE" & STSUBDIDGB== "WINTERBOURNE" & STRGCNTYGB== "WILTSHIRE"
replace mergeclink=1 if BPSTPAGB=="LUDDENHAM" & STBPCCTYGB=="KENT" & STSUBDIDGB== "SYDENHAM" & STRGCNTYGB== "KENT"
replace mergeclink=1 if BPSTPAGB=="CARLTON" & STBPCCTYGB=="KENT" & STSUBDIDGB== "CHARLTON" & STRGCNTYGB== "KENT"
replace mergeclink=1 if BPSTPAGB=="CHATHAM" & STBPCCTYGB=="KENT" & STSUBDIDGB== "CHARLTON" & STRGCNTYGB== "KENT"
replace mergeclink=1 if BPSTPAGB=="CHARING" & STBPCCTYGB=="KENT" & STSUBDIDGB== "CHARLTON" & STRGCNTYGB== "KENT"
replace mergeclink=1 if BPSTPAGB=="CHESTERFIELD" & STBPCCTYGB=="KENT" & STSUBDIDGB== "ROCHESTER" & STRGCNTYGB== "KENT"
replace mergeclink=1 if BPSTPAGB=="WEST MALLING" & STBPCCTYGB=="KENT" & STSUBDIDGB== "WEST MAIDSTONE" & STRGCNTYGB== "KENT"
replace mergeclink=1 if BPSTPAGB=="WEST MEON" & STBPCCTYGB=="KENT" & STSUBDIDGB== "WEST MAIDSTONE" & STRGCNTYGB== "KENT"
replace mergeclink=1 if BPSTPAGB=="WEST LANGDON" & STBPCCTYGB=="KENT" & STSUBDIDGB== "WEST MAIDSTONE" & STRGCNTYGB== "KENT"
replace mergeclink=1 if BPSTPAGB=="MAIDSTONE" & STBPCCTYGB=="KENT" & STSUBDIDGB== "WEST MAIDSTONE" & STRGCNTYGB== "KENT"
replace mergeclink=1 if BPSTPAGB=="WEST HYTHE" & STBPCCTYGB=="KENT" & STSUBDIDGB== "WEST MAIDSTONE" & STRGCNTYGB== "KENT"
replace mergeclink=1 if BPSTPAGB=="EASTBRIDGE" & STBPCCTYGB=="KENT" & STSUBDIDGB== "EAST MAIDSTONE" & STRGCNTYGB== "KENT"
replace mergeclink=1 if BPSTPAGB=="EAST LANGDON" & STBPCCTYGB=="KENT" & STSUBDIDGB== "EAST MAIDSTONE" & STRGCNTYGB== "KENT"
replace mergeclink=1 if BPSTPAGB=="EAST MALLING" & STBPCCTYGB=="KENT" & STSUBDIDGB== "EAST MAIDSTONE" & STRGCNTYGB== "KENT"
replace mergeclink=1 if BPSTPAGB=="EAST SUTTON" & STBPCCTYGB=="KENT" & STSUBDIDGB== "EAST MAIDSTONE" & STRGCNTYGB== "KENT"
replace mergeclink=1 if BPSTPAGB=="BOURTON" & STBPCCTYGB=="KENT" & STSUBDIDGB== "BOUGHTON" & STRGCNTYGB== "KENT"
replace mergeclink=1 if BPSTPAGB=="SANDHURST" & STBPCCTYGB=="KENT" & STSUBDIDGB== "SANDWICH" & STRGCNTYGB== "KENT"
replace mergeclink=1 if BPSTPAGB=="SANDRIDGE" & STBPCCTYGB=="KENT" & STSUBDIDGB== "SANDWICH" & STRGCNTYGB== "KENT"
replace mergeclink=1 if BPSTPAGB=="ST MARGARET AT CLIFFE" & STBPCCTYGB=="KENT" & STSUBDIDGB== "ST MARY" & STRGCNTYGB== "KENT"
replace mergeclink=1 if BPSTPAGB=="STANSTEAD ST MARGARET" & STBPCCTYGB=="KENT" & STSUBDIDGB== "ST MARY" & STRGCNTYGB== "KENT"
replace mergeclink=1 if BPSTPAGB=="DUNSTALL" & STBPCCTYGB=="STAFFORDSHIRE" & STSUBDIDGB== "TUNSTALL" & STRGCNTYGB== "STAFFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="HANDLEY" & STBPCCTYGB=="STAFFORDSHIRE" & STSUBDIDGB== "HANLEY" & STRGCNTYGB== "STAFFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="FELTON" & STBPCCTYGB=="HEREFORDSHIRE" & STSUBDIDGB== "SHELTON" & STRGCNTYGB== "STAFFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="ELTON" & STBPCCTYGB=="HEREFORDSHIRE" & STSUBDIDGB== "SHELTON" & STRGCNTYGB== "STAFFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="SHENSTONE" & STBPCCTYGB=="STAFFORDSHIRE" & STSUBDIDGB== "SHELTON" & STRGCNTYGB== "STAFFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="LONGTOWN" & STBPCCTYGB=="HEREFORDSHIRE" & STSUBDIDGB== "LONGTON" & STRGCNTYGB== "STAFFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="LONGDON" & STBPCCTYGB=="STAFFORDSHIRE" & STSUBDIDGB== "LONGTON" & STRGCNTYGB== "STAFFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="BUSHBURY" & STBPCCTYGB=="STAFFORDSHIRE" & STSUBDIDGB== "SUDBURY" & STRGCNTYGB== "STAFFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="BLITHFIELD" & STBPCCTYGB=="STAFFORDSHIRE" & STSUBDIDGB== "LICHFIELD" & STRGCNTYGB== "STAFFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="FIELD" & STBPCCTYGB=="STAFFORDSHIRE" & STSUBDIDGB== "LICHFIELD" & STRGCNTYGB== "STAFFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="ALDBURY" & STBPCCTYGB=="HERTFORDSHIRE" & STSUBDIDGB== "OLDBURY" & STRGCNTYGB== "STAFFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="BUSHBURY" & STBPCCTYGB=="STAFFORDSHIRE" & STSUBDIDGB== "OLDBURY" & STRGCNTYGB== "STAFFORDSHIRE"
replace mergeclink=1 if BPSTPAGB=="STIFFORD" & STBPCCTYGB=="ESSEX" & STSUBDIDGB== "STRATFORD" & STRGCNTYGB== "ESSEX"
replace mergeclink=1 if BPSTPAGB=="SHALFORD" & STBPCCTYGB=="ESSEX" & STSUBDIDGB== "ILFORD" & STRGCNTYGB== "ESSEX"
replace mergeclink=1 if BPSTPAGB=="BARLING" & STBPCCTYGB=="ESSEX" & STSUBDIDGB== "BARKING TOWN" & STRGCNTYGB== "ESSEX"
replace mergeclink=1 if BPSTPAGB=="BRADFIELD" & STBPCCTYGB=="ESSEX" & STSUBDIDGB== "BRADWELL" & STRGCNTYGB== "ESSEX"
replace mergeclink=1 if BPSTPAGB=="EASTHORPE" & STBPCCTYGB=="ESSEX" & STSUBDIDGB== "THORPE" & STRGCNTYGB== "ESSEX"
replace mergeclink=1 if BPSTPAGB=="THORRINGTON" & STBPCCTYGB=="ESSEX" & STSUBDIDGB== "THORPE" & STRGCNTYGB== "ESSEX"
replace mergeclink=1 if BPSTPAGB=="FYFIELD" & STBPCCTYGB=="ESSEX" & STSUBDIDGB== "HATFIELD" & STRGCNTYGB== "ESSEX"
replace mergeclink=1 if BPSTPAGB=="HARTFIELD" & STBPCCTYGB=="SUSSEX" & STSUBDIDGB== "HATFIELD" & STRGCNTYGB== "ESSEX"
replace mergeclink=1 if BPSTPAGB=="APPLETHWAITE" & STBPCCTYGB=="WESTMORLAND" & STSUBDIDGB== "APPLEBY" & STRGCNTYGB== "WESTMORLAND"
replace mergeclink=1 if BPSTPAGB=="FINNINGLEY" & STBPCCTYGB=="NOTTINGHAMSHIRE" & STSUBDIDGB== "GRINGLEY" & STRGCNTYGB== "NOTTINGHAMSHIRE"
replace mergeclink=1 if BPSTPAGB=="EDINGLEY" & STBPCCTYGB=="NOTTINGHAMSHIRE" & STSUBDIDGB== "GRINGLEY" & STRGCNTYGB== "NOTTINGHAMSHIRE"
replace mergeclink=1 if BPSTPAGB=="TOTON" & STBPCCTYGB=="NOTTINGHAMSHIRE" & STSUBDIDGB== "ANSTON" & STRGCNTYGB== "NOTTINGHAMSHIRE"
replace mergeclink=1 if BPSTPAGB=="BEESTON" & STBPCCTYGB=="NOTTINGHAMSHIRE" & STSUBDIDGB== "ILKESTON" & STRGCNTYGB== "NOTTINGHAMSHIRE"
replace mergeclink=1 if BPSTPAGB=="WESTON" & STBPCCTYGB=="NOTTINGHAMSHIRE" & STSUBDIDGB== "ILKESTON" & STRGCNTYGB== "NOTTINGHAMSHIRE"
replace mergeclink=1 if BPSTPAGB=="SUTTON-BONNINGTON" & STBPCCTYGB=="NOTTINGHAMSHIRE" & STSUBDIDGB== "BENNINGTON" & STRGCNTYGB== "NOTTINGHAMSHIRE"
replace mergeclink=1 if BPSTPAGB=="CLAYWORTH" & STBPCCTYGB=="NOTTINGHAMSHIRE" & STSUBDIDGB== "CLAYPOLE" & STRGCNTYGB== "NOTTINGHAMSHIRE"
replace mergeclink=1 if BPSTPAGB=="RATCLIFFE UPON SOAR" & STBPCCTYGB=="NOTTINGHAMSHIRE" & STSUBDIDGB== "RATCLIFFE UPON TRENT" & STRGCNTYGB== "NOTTINGHAMSHIRE"
replace mergeclink=1 if BPSTPAGB=="SUTTON UPON TRENT" & STBPCCTYGB=="NOTTINGHAMSHIRE" & STSUBDIDGB== "RATCLIFFE UPON TRENT" & STRGCNTYGB== "NOTTINGHAMSHIRE"
replace mergeclink=1 if BPSTPAGB=="CARLTON UPON TRENT" & STBPCCTYGB=="NOTTINGHAMSHIRE" & STSUBDIDGB== "RATCLIFFE UPON TRENT" & STRGCNTYGB== "NOTTINGHAMSHIRE"
replace mergeclink=1 if BPSTPAGB=="NORMANTON UPON TRENT" & STBPCCTYGB=="NOTTINGHAMSHIRE" & STSUBDIDGB== "RATCLIFFE UPON TRENT" & STRGCNTYGB== "NOTTINGHAMSHIRE"
replace mergeclink=1 if BPSTPAGB=="SWINFORD" & STBPCCTYGB=="LEICESTERSHIRE" & STSUBDIDGB== "KINGSWINFORD" & STRGCNTYGB== "WORCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="ALDERMINSTER" & STBPCCTYGB=="WORCESTERSHIRE" & STSUBDIDGB== "KIDDERMINSTER" & STRGCNTYGB== "WORCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="LOWER SWELL" & STBPCCTYGB=="GLOUCESTERSHIRE" & STSUBDIDGB== "LOWER MITTON" & STRGCNTYGB== "WORCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="LOWER SAPEY" & STBPCCTYGB=="WORCESTERSHIRE" & STSUBDIDGB== "LOWER MITTON" & STRGCNTYGB== "WORCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="WITHERLEY" & STBPCCTYGB=="LEICESTERSHIRE" & STSUBDIDGB== "WITLEY" & STRGCNTYGB== "WORCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="WORCESTER" & STBPCCTYGB=="GLOUCESTERSHIRE" & STSUBDIDGB== "WEST WORCESTER" & STRGCNTYGB== "WORCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="NORTH KILWORTH" & STBPCCTYGB=="LEICESTERSHIRE" & STSUBDIDGB== "NORTH WORCESTER" & STRGCNTYGB== "WORCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="NORTH OR SOUTH CERNEY" & STBPCCTYGB=="GLOUCESTERSHIRE" & STSUBDIDGB== "NORTH WORCESTER" & STRGCNTYGB== "WORCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="NORTH CERNEY" & STBPCCTYGB=="GLOUCESTERSHIRE" & STSUBDIDGB== "NORTH WORCESTER" & STRGCNTYGB== "WORCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="NORTH PIDDLE" & STBPCCTYGB=="WORCESTERSHIRE" & STSUBDIDGB== "NORTH WORCESTER" & STRGCNTYGB== "WORCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="SOUTH KILWORTH" & STBPCCTYGB=="LEICESTERSHIRE" & STSUBDIDGB== "SOUTH WORCESTER" & STRGCNTYGB== "WORCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="HARBY" & STBPCCTYGB=="LEICESTERSHIRE" & STSUBDIDGB== "HARBORNE" & STRGCNTYGB== "WORCESTERSHIRE"
replace mergeclink=1 if BPSTPAGB=="ABERGAVENNY" & STBPCCTYGB=="BRECKNOCKSHIRE" & STSUBDIDGB== "ABERGWESSIN" & STRGCNTYGB== "BRECKNOCKSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANAFAN-FAWR" & STBPCCTYGB=="BRECKNOCKSHIRE" & STSUBDIDGB== "LLANGORSE" & STRGCNTYGB== "BRECKNOCKSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANAFAN-FECHAN AKA LLANFECHAN" & STBPCCTYGB=="BRECKNOCKSHIRE" & STSUBDIDGB== "LLANGORSE" & STRGCNTYGB== "BRECKNOCKSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGENNY" & STBPCCTYGB=="BRECKNOCKSHIRE" & STSUBDIDGB== "LLANGORSE" & STRGCNTYGB== "BRECKNOCKSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANFIHANGEL-NANT-BRANE" & STBPCCTYGB=="BRECKNOCKSHIRE" & STSUBDIDGB== "LLANGORSE" & STRGCNTYGB== "BRECKNOCKSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGANTEN" & STBPCCTYGB=="BRECKNOCKSHIRE" & STSUBDIDGB== "LLANGORSE" & STRGCNTYGB== "BRECKNOCKSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANLLEONVEL" & STBPCCTYGB=="BRECKNOCKSHIRE" & STSUBDIDGB== "LLANGORSE" & STRGCNTYGB== "BRECKNOCKSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANYNYS" & STBPCCTYGB=="BRECKNOCKSHIRE" & STSUBDIDGB== "LLANGORSE" & STRGCNTYGB== "BRECKNOCKSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANBEDR" & STBPCCTYGB=="BRECKNOCKSHIRE" & STSUBDIDGB== "LLANGORSE" & STRGCNTYGB== "BRECKNOCKSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANVIGAN" & STBPCCTYGB=="BRECKNOCKSHIRE" & STSUBDIDGB== "LLANGORSE" & STRGCNTYGB== "BRECKNOCKSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANTHEW" & STBPCCTYGB=="BRECKNOCKSHIRE" & STSUBDIDGB== "LLANGORSE" & STRGCNTYGB== "BRECKNOCKSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANHAMLACH" & STBPCCTYGB=="BRECKNOCKSHIRE" & STSUBDIDGB== "LLANGORSE" & STRGCNTYGB== "BRECKNOCKSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANGYNOG" & STBPCCTYGB=="BRECKNOCKSHIRE" & STSUBDIDGB== "LLANGORSE" & STRGCNTYGB== "BRECKNOCKSHIRE"
replace mergeclink=1 if BPSTPAGB=="LLANDEFALLEY" & STBPCCTYGB=="BRECKNOCKSHIRE" & STSUBDIDGB== "LLANGORSE" & STRGCNTYGB== "BRECKNOCKSHIRE"
replace mergeclink=1 if BPSTPAGB=="STOCKHAM" & STBPCCTYGB=="CHESHIRE" & STSUBDIDGB== "STOCKPORT FIRST" & STRGCNTYGB== "CHESHIRE"
replace mergeclink=1 if BPSTPAGB=="CHURCH MINSHULL" & STBPCCTYGB=="CHESHIRE" & STSUBDIDGB== "CHURCH HULME" & STRGCNTYGB== "CHESHIRE"
replace mergeclink=1 if BPSTPAGB=="CHURCH LAWTON" & STBPCCTYGB=="CHESHIRE" & STSUBDIDGB== "CHURCH HULME" & STRGCNTYGB== "CHESHIRE"
replace mergeclink=1 if BPSTPAGB=="CHESTER ST MARTIN" & STBPCCTYGB=="CHESHIRE" & STSUBDIDGB== "CHESTER CASTLE" & STRGCNTYGB== "CHESHIRE"
replace mergeclink=1 if BPSTPAGB=="CHESTER HOLY TRINITY" & STBPCCTYGB=="CHESHIRE" & STSUBDIDGB== "CHESTER CASTLE" & STRGCNTYGB== "CHESHIRE"
replace mergeclink=1 if BPSTPAGB=="CHESTER ST MICHAEL" & STBPCCTYGB=="CHESHIRE" & STSUBDIDGB== "CHESTER CASTLE" & STRGCNTYGB== "CHESHIRE"
replace mergeclink=1 if BPSTPAGB=="CHESTER CITY ST JOHNS PARISH" & STBPCCTYGB=="CHESHIRE" & STSUBDIDGB== "CHESTER CASTLE" & STRGCNTYGB== "CHESHIRE"
replace mergeclink=1 if BPSTPAGB=="CHESTER ST BRIDGET" & STBPCCTYGB=="CHESHIRE" & STSUBDIDGB== "CHESTER CASTLE" & STRGCNTYGB== "CHESHIRE"
replace mergeclink=1 if BPSTPAGB=="CHESTER ST JOHN THE BAPTIST" & STBPCCTYGB=="CHESHIRE" & STSUBDIDGB== "CHESTER CATHEDRAL" & STRGCNTYGB== "CHESHIRE"
replace mergeclink=1 if BPSTPAGB=="CHESTER ST OSWALD" & STBPCCTYGB=="CHESHIRE" & STSUBDIDGB== "CHESTER CATHEDRAL" & STRGCNTYGB== "CHESHIRE"
replace mergeclink=1 if BPSTPAGB=="CHESTER ST MARY ON THE HILL" & STBPCCTYGB=="CHESHIRE" & STSUBDIDGB== "CHESTER CATHEDRAL" & STRGCNTYGB== "CHESHIRE"
replace mergeclink=1 if BPSTPAGB=="CARDEN" & STBPCCTYGB=="CHESHIRE" & STSUBDIDGB== "HAWARDEN" & STRGCNTYGB== "CHESHIRE"
replace mergeclink=1 if BPSTPAGB=="HURLESTON" & STBPCCTYGB=="CHESHIRE" & STSUBDIDGB== "NESTON" & STRGCNTYGB== "CHESHIRE"
replace mergeclink=1 if BPSTPAGB=="DODLESTON" & STBPCCTYGB=="CHESHIRE" & STSUBDIDGB== "NESTON" & STRGCNTYGB== "CHESHIRE"
replace mergeclink=1 if BPSTPAGB=="ONSTON" & STBPCCTYGB=="CHESHIRE" & STSUBDIDGB== "NESTON" & STRGCNTYGB== "CHESHIRE"
replace mergeclink=1 if BPSTPAGB=="NESS" & STBPCCTYGB=="CHESHIRE" & STSUBDIDGB== "NESTON" & STRGCNTYGB== "CHESHIRE"
replace mergeclink=1 if BPSTPAGB=="ECCLESTON" & STBPCCTYGB=="CHESHIRE" & STSUBDIDGB== "NESTON" & STRGCNTYGB== "CHESHIRE"
replace mergeclink=1 if BPSTPAGB=="WISTASTON" & STBPCCTYGB=="CHESHIRE" & STSUBDIDGB== "NESTON" & STRGCNTYGB== "CHESHIRE"
replace mergeclink=1 if BPSTPAGB=="NEWTON" & STBPCCTYGB=="CHESHIRE" & STSUBDIDGB== "NESTON" & STRGCNTYGB== "CHESHIRE"
replace mergeclink=1 if BPSTPAGB=="OCCLESTONE" & STBPCCTYGB=="CHESHIRE" & STSUBDIDGB== "NESTON" & STRGCNTYGB== "CHESHIRE"
replace mergeclink=1 if BPSTPAGB=="WORLESTON" & STBPCCTYGB=="CHESHIRE" & STSUBDIDGB== "NESTON" & STRGCNTYGB== "CHESHIRE"
replace mergeclink=1 if BPSTPAGB=="WESTON" & STBPCCTYGB=="CHESHIRE" & STSUBDIDGB== "NESTON" & STRGCNTYGB== "CHESHIRE"
replace mergeclink=1 if BPSTPAGB=="BEESTON" & STBPCCTYGB=="CHESHIRE" & STSUBDIDGB== "NESTON" & STRGCNTYGB== "CHESHIRE"
